Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
};
Expand Down
2 changes: 1 addition & 1 deletion crates/fspy_shared_unix/src/exec/which.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Comment thread
Brooooooklyn marked this conversation as resolved.
assert_eq!(s, "abce");
}

Expand Down
Loading