Use format! instead of string concat (#94)

Cleaner
This commit is contained in:
Yuvi Panda 2021-05-10 03:03:57 +05:30 committed by GitHub
parent c16a26cdbf
commit f0463326fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ impl State {
let (duration, mut ago) = durations[i].clone();
while (duration.len() + ago.len()) < max_length {
ago = " ".to_owned() + ago.as_str();
ago = format!(" {}", ago);
}
let duration = Span::styled(