diff --git a/ykaddr/src/obj.rs b/ykaddr/src/obj.rs index 7c8cbe7ac..255b58828 100644 --- a/ykaddr/src/obj.rs +++ b/ykaddr/src/obj.rs @@ -136,6 +136,6 @@ pub static SELF_BIN_PATH: LazyLock = LazyLock::new(|| { // The main binary's ELF executable mapped into the address space. pub static SELF_BIN_MMAP: LazyLock = 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() } }); diff --git a/ykrt/src/compile/jitc_llvm.rs b/ykrt/src/compile/jitc_llvm.rs index 3ac23a642..0e0892463 100644 --- a/ykrt/src/compile/jitc_llvm.rs +++ b/ykrt/src/compile/jitc_llvm.rs @@ -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 }