From 1036e902380da6a5197d6a4be6785580dcf85980 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Mon, 1 Jan 2024 19:08:13 -0500 Subject: [PATCH] Add space between datetime and filename for listings --- src/listing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/listing.rs b/src/listing.rs index f5457b1..f998481 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -205,7 +205,7 @@ impl fmt::Display for Listing { }, )?; match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) { - Some(dt) => write!(f, "{dt}")?, + Some(dt) => write!(f, "{dt} ")?, _ => write!(f, "{:>19} ", self.mtime)?, } match self.kind { @@ -324,7 +324,7 @@ impl Listing { }, ); match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) { - Some(dt) => print!("{dt}"), + Some(dt) => print!("{dt} "), _ => print!("{:>19} ", self.mtime), } let mut stdout = StandardStream::stdout(ColorChoice::Auto);