diff --git a/libafl/src/bolts/fs.rs b/libafl/src/bolts/fs.rs
index 8610554cf8..4b5e9b3a88 100644
--- a/libafl/src/bolts/fs.rs
+++ b/libafl/src/bolts/fs.rs
@@ -166,6 +166,6 @@ mod test {
let two = one.clone();
one.write_buf("Welp".as_bytes()).unwrap();
drop(one);
- assert_eq!("Welp", fs::read_to_string(&two.path).unwrap());
+ assert_eq!("Welp", fs::read_to_string(two.path.as_path()).unwrap());
}
}
diff --git a/libafl/src/bolts/llmp.rs b/libafl/src/bolts/llmp.rs
index 579a1a4997..af855c5ab3 100644
--- a/libafl/src/bolts/llmp.rs
+++ b/libafl/src/bolts/llmp.rs
@@ -366,7 +366,7 @@ const fn llmp_align(to_align: usize) -> usize {
#[cfg(feature = "std")]
#[inline]
fn msg_offset_from_env(env_name: &str) -> Result