From 888fa27a0e0a2d8ba87ab7459089c5a4e2697ce8 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Mon, 15 Jan 2024 00:50:15 -0500 Subject: [PATCH] Fix misuse of write! in last commit --- src/listing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/listing.rs b/src/listing.rs index 779fdb0..c4edbf8 100644 --- a/src/listing.rs +++ b/src/listing.rs @@ -320,8 +320,8 @@ impl Listing { self.gid, ); match self.kind { - Kind::Normal(s) => write!(f, "{s:>10} "), - _ => write!(f, "{:>10}", "-"), + Kind::Normal(s) => print!(f, "{s:>10} "), + _ => print!(f, "{:>10}", "-"), }?; match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) { Some(dt) => print!("{dt} "),