Merge pull request from cakebaker/mountpoint_fix_clippy_warnings_on_windows

mountpoint: fix two clippy warnings on Windows
This commit is contained in:
Sylvestre Ledru 2024-05-06 15:11:40 +02:00 committed by GitHub
commit 89d554129e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions
src/uu/mountpoint/src
tests/by-util

@ -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
}

@ -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() {