This commit is contained in:
Chester Liu 2021-03-31 11:04:11 +08:00
parent 00f97a9738
commit 0ea8f17b22
2 changed files with 6 additions and 4 deletions

View File

@ -617,6 +617,6 @@ mod filename_test {
#[test] #[test]
#[cfg(unix)] #[cfg(unix)]
fn topmost() { fn topmost() {
assert_eq!("/", File::filename(Path::new("/"))); assert_eq!("/", File::filename(Path::new("/")))
} }
} }

View File

@ -159,10 +159,12 @@ impl Column {
_ => Alignment::Left, _ => Alignment::Left,
} }
} }
#[cfg(windows)] #[cfg(windows)]
pub fn alignment(&self) -> Alignment { pub fn alignment(&self) -> Alignment {
match *self { match self {
Column::FileSize | Column::GitStatus => Alignment::Right, Self::FileSize |
Self::GitStatus => Alignment::Right,
_ => Alignment::Left, _ => Alignment::Left,
} }
} }