Skip to content

Commit 3ea6c45

Browse files
committed
fix
1 parent 41b7713 commit 3ea6c45

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_
1616
tail_expr_drop_order = "warn"
1717
unsafe_op_in_unsafe_fn = "warn"
1818
unused_unsafe = "warn"
19+
long_running_const_eval = "allow"
1920

2021
[workspace.lints.clippy]
2122
all = { level = "warn", priority = -1 }

crates/fspy/src/unix/syscall_handler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl SyscallHandler {
5353
let mut path = Cow::Borrowed(Path::new(OsStr::from_bytes(&self.path_read_buf[..path_len])));
5454
if !path.is_absolute() {
5555
let mut resolved_path = PathBuf::from(dir_fd.get_path(caller)?);
56-
if !path.is_empty() {
56+
if !nix::NixPath::is_empty(path.as_ref()) {
5757
resolved_path.push(&path);
5858
}
5959
path = Cow::Owned(resolved_path);

0 commit comments

Comments
 (0)