diff --git a/fuzzers/fuzzbench/Makefile.toml b/fuzzers/fuzzbench/Makefile.toml index eae2df8c35..1cfd6e3b55 100644 --- a/fuzzers/fuzzbench/Makefile.toml +++ b/fuzzers/fuzzbench/Makefile.toml @@ -103,4 +103,4 @@ script_runner="@shell" script=''' rm ./${FUZZER_NAME} || true rm fuzz.o || true -''' \ No newline at end of file +''' diff --git a/libafl/src/bolts/shmem.rs b/libafl/src/bolts/shmem.rs index 4d0b9ea4a8..0b1f1e4911 100644 --- a/libafl/src/bolts/shmem.rs +++ b/libafl/src/bolts/shmem.rs @@ -527,6 +527,9 @@ where /// Is needed on top. #[cfg(all(unix, feature = "std"))] pub mod unix_shmem { + #[cfg(doc)] + use crate::bolts::shmem::{ShMem, ShMemProvider}; + /// Shared memory provider for Android, allocating and forwarding maps over unix domain sockets. #[cfg(target_os = "android")] pub type UnixShMemProvider = ashmem::AshmemShMemProvider; diff --git a/libafl/src/corpus/inmemory_ondisk.rs b/libafl/src/corpus/inmemory_ondisk.rs index 40284c72eb..dbdc213f9b 100644 --- a/libafl/src/corpus/inmemory_ondisk.rs +++ b/libafl/src/corpus/inmemory_ondisk.rs @@ -377,7 +377,7 @@ where } // also try to remove the corresponding `.lafl_lock` file if it still exists // (even though it shouldn't exist anymore, at this point in time) - let _ = fs::remove_file(self.dir_path.join(format!(".{filename}.lafl_lock"))); + fs::remove_file(self.dir_path.join(format!(".{filename}.lafl_lock")))?; } Ok(()) }