diff --git a/src/fs/file.rs b/src/fs/file.rs index b714659..3e6222b 100644 --- a/src/fs/file.rs +++ b/src/fs/file.rs @@ -617,6 +617,6 @@ mod filename_test { #[test] #[cfg(unix)] fn topmost() { - assert_eq!("/", File::filename(Path::new("/"))); + assert_eq!("/", File::filename(Path::new("/"))) } } diff --git a/src/output/table.rs b/src/output/table.rs index 7c254cb..4bc1162 100644 --- a/src/output/table.rs +++ b/src/output/table.rs @@ -159,11 +159,13 @@ impl Column { _ => Alignment::Left, } } + #[cfg(windows)] pub fn alignment(&self) -> Alignment { - match *self { - Column::FileSize | Column::GitStatus => Alignment::Right, - _ => Alignment::Left, + match self { + Self::FileSize | + Self::GitStatus => Alignment::Right, + _ => Alignment::Left, } }