Merge pull request #32 from cakebaker/mountpoint_fix_clippy_warnings_on_windows
mountpoint: fix two clippy warnings on Windows
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
use clap::Arg;
|
use clap::Arg;
|
||||||
use clap::{crate_version, Command};
|
use clap::{crate_version, Command};
|
||||||
use std::env;
|
use std::env;
|
||||||
|
#[cfg(not(windows))]
|
||||||
use std::fs;
|
use std::fs;
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
use std::os::unix::fs::MetadataExt;
|
use std::os::unix::fs::MetadataExt;
|
||||||
@ -54,7 +55,7 @@ fn is_mountpoint(path: &str) -> bool {
|
|||||||
|
|
||||||
// TODO: implement for windows
|
// TODO: implement for windows
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
fn is_mountpoint(path: &str) -> bool {
|
fn is_mountpoint(_path: &str) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,9 +4,7 @@
|
|||||||
// file that was distributed with this source code.
|
// file that was distributed with this source code.
|
||||||
// spell-checker:ignore (words) symdir somefakedir
|
// spell-checker:ignore (words) symdir somefakedir
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use crate::common::util::TestScenario;
|
||||||
|
|
||||||
use crate::common::util::{TestScenario, UCommand};
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_invalid_arg() {
|
fn test_invalid_arg() {
|
||||||
|
Reference in New Issue
Block a user