Skip to content

Commit 302cc1c

Browse files
authored
Merge pull request #490 from hermit-os/clippy-cmp_owned
fix: clippy::cmp_owned
2 parents 4cc73a8 + 7436b72 commit 302cc1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mounts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ fn open_trough_procfd(
358358
full_dest: &Path,
359359
options: &mut MountOptions,
360360
) -> File {
361-
if mount_dest.to_path_buf() == PathBuf::from("/dev") || device == "tmpfs" {
361+
if mount_dest == "/dev" || device == "tmpfs" {
362362
options.mount_flags.remove(MsFlags::MS_RDONLY);
363363
}
364364

src/rootfs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn resolve_in_rootfs(destination_rel: &Path, rootfs: &Path) -> PathBuf {
2929
.join(&destination_resolved)
3030
.join(subpath)
3131
.clean();
32-
if clean_subpath == PathBuf::from("/") {
32+
if &clean_subpath == "/" {
3333
destination_resolved.clear();
3434
continue;
3535
}

0 commit comments

Comments
 (0)