Skip to content

Commit ae51ce3

Browse files
authored
Merge pull request #3937 from jarhodes314/chore/fix-clippy-lint
chore: fix clippy warnings from v0.1.93
2 parents c3124e1 + 689b8de commit ae51ce3

File tree

1 file changed

+1
-2
lines changed
  • crates/common/tedge_utils/src

1 file changed

+1
-2
lines changed

crates/common/tedge_utils/src/fs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use nix::NixPath;
21
use std::fs as std_fs;
32
use std::io::Read;
43
use std::io::Write;
@@ -170,7 +169,7 @@ pub async fn atomically_write_file_async(
170169
fn parent_dir(file: &Path) -> PathBuf {
171170
match file.parent() {
172171
None => Path::new("/").into(),
173-
Some(path) if path.is_empty() => Path::new(".").into(),
172+
Some(path) if nix::NixPath::is_empty(path) => Path::new(".").into(),
174173
Some(dir) => dir.into(),
175174
}
176175
}

0 commit comments

Comments
 (0)