Skip to content

Commit

Permalink
Merge pull request #32 from cakebaker/mountpoint_fix_clippy_warnings_…
Browse files Browse the repository at this point in the history
…on_windows

mountpoint: fix two clippy warnings on Windows
  • Loading branch information
sylvestre authored May 6, 2024
2 parents 456ebb7 + 3a90759 commit 89d5541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/uu/mountpoint/src/mountpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
}

Expand Down
4 changes: 1 addition & 3 deletions tests/by-util/test_mountpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 89d5541

Please sign in to comment.