diff --git a/crates/fspy_preload_unix/src/interceptions/spawn/exec/with_argv.rs b/crates/fspy_preload_unix/src/interceptions/spawn/exec/with_argv.rs index 78e71d7914..bf318d1111 100644 --- a/crates/fspy_preload_unix/src/interceptions/spawn/exec/with_argv.rs +++ b/crates/fspy_preload_unix/src/interceptions/spawn/exec/with_argv.rs @@ -16,7 +16,7 @@ pub unsafe fn with_argv( let argc = 1 + unsafe { va.with_copy(|mut copy| { core::iter::from_fn(|| Some(copy.arg::<*const c_char>())) - .position(|p| p.is_null()) + .position(<*const i8>::is_null) .unwrap() }) }; diff --git a/crates/fspy_shared_unix/src/exec/which.rs b/crates/fspy_shared_unix/src/exec/which.rs index c6488e8a87..7014706811 100644 --- a/crates/fspy_shared_unix/src/exec/which.rs +++ b/crates/fspy_shared_unix/src/exec/which.rs @@ -86,7 +86,7 @@ mod tests { #[test] fn test_concat() { - let s = concat(&["a".into(), "bc".into(), "".into(), "e".into()], |s| s.to_owned()); + let s = concat(&["a".into(), "bc".into(), "".into(), "e".into()], BStr::to_owned); assert_eq!(s, "abce"); }