Skip to content

Commit

Permalink
Fixes suggested by Clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltratt authored and Iti Shree committed Jan 23, 2024
1 parent c6750e3 commit 85ac540
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ykaddr/src/obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ pub static SELF_BIN_PATH: LazyLock<PathBuf> = LazyLock::new(|| {

// The main binary's ELF executable mapped into the address space.
pub static SELF_BIN_MMAP: LazyLock<memmap2::Mmap> = LazyLock::new(|| {
let file = fs::File::open(&SELF_BIN_PATH.as_path()).unwrap();
let file = fs::File::open(SELF_BIN_PATH.as_path()).unwrap();
unsafe { memmap2::Mmap::map(&file).unwrap() }
});
2 changes: 1 addition & 1 deletion ykrt/src/compile/jitc_llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ impl JITCLLVM {

/// Returns a pointer to (and the size of) the raw LLVM bitcode in the current address space.
pub(crate) fn llvmbc_section() -> &'static [u8] {
&**LLVM_BITCODE
&LLVM_BITCODE
}

0 comments on commit 85ac540

Please sign in to comment.