From 5c033a70f682aabd955748b14bd088b698001782 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 19 Apr 2024 09:26:50 +0200 Subject: [PATCH 1/2] mountpoint: fix two clippy warnings on Windows --- src/uu/mountpoint/src/mountpoint.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uu/mountpoint/src/mountpoint.rs b/src/uu/mountpoint/src/mountpoint.rs index e72ef59..ef70bc6 100644 --- a/src/uu/mountpoint/src/mountpoint.rs +++ b/src/uu/mountpoint/src/mountpoint.rs @@ -6,6 +6,7 @@ use clap::Arg; use clap::{crate_version, Command}; use std::env; +#[cfg(not(windows))] use std::fs; #[cfg(not(windows))] use std::os::unix::fs::MetadataExt; @@ -54,7 +55,7 @@ fn is_mountpoint(path: &str) -> bool { // TODO: implement for windows #[cfg(windows)] -fn is_mountpoint(path: &str) -> bool { +fn is_mountpoint(_path: &str) -> bool { false } From 3a9075987c38bb1969eff11c8cd7e3849b8e0290 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 19 Apr 2024 09:45:15 +0200 Subject: [PATCH 2/2] mountpoint: remove unused imports in test --- tests/by-util/test_mountpoint.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/by-util/test_mountpoint.rs b/tests/by-util/test_mountpoint.rs index ca96aff..94285a4 100644 --- a/tests/by-util/test_mountpoint.rs +++ b/tests/by-util/test_mountpoint.rs @@ -4,9 +4,7 @@ // file that was distributed with this source code. // spell-checker:ignore (words) symdir somefakedir -use std::path::PathBuf; - -use crate::common::util::{TestScenario, UCommand}; +use crate::common::util::TestScenario; #[test] fn test_invalid_arg() {