summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/command/search.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/search.rs b/src/command/search.rs
index e0763822..f8a4a1ba 100644
--- a/src/command/search.rs
+++ b/src/command/search.rs
@@ -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(