Skip to content

Commit

Permalink
Merge pull request #327 from Pat-Lafon/main
Browse files Browse the repository at this point in the history
Clippy lints 1.79
  • Loading branch information
sampsyo authored Jun 17, 2024
2 parents a9925d5 + d146e4f commit cb314e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bril-rs/brillvm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::cargo)]
#![allow(clippy::doc_markdown)] // Not uniform? Just lints on one line
#![allow(clippy::too_many_lines)]
#![allow(clippy::needless_for_each)]
#![doc = include_str!("../README.md")]
Expand Down
2 changes: 1 addition & 1 deletion brilift/src/translator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ impl Translator<JITModule> {
pub unsafe fn run(&mut self, func_id: cranelift_module::FuncId, args: &[bril::Literal]) {
let func_ptr = self.get_func_ptr(func_id);
let arg_ptrs = Self::val_ptrs(args);
let func = mem::transmute::<_, fn(*const *const u8) -> ()>(func_ptr);
let func = mem::transmute::<*const u8, fn(*const *const u8) -> ()>(func_ptr);
func(arg_ptrs.as_ptr());
}
}
Expand Down

0 comments on commit cb314e4

Please sign in to comment.