aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ttyplay/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ttyplay/input.rs')
-rw-r--r--src/bin/ttyplay/input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/ttyplay/input.rs b/src/bin/ttyplay/input.rs
index fe7dc30..fb4018b 100644
--- a/src/bin/ttyplay/input.rs
+++ b/src/bin/ttyplay/input.rs
@@ -107,8 +107,8 @@ pub fn spawn_thread(
)
}
textmode::Key::Char('/') => {
- search = Some("".to_string());
- crate::event::Event::ActiveSearch("".to_string())
+ search = Some(String::new());
+ crate::event::Event::ActiveSearch(String::new())
}
textmode::Key::Char('n') => {
if let Some(ref search) = prev_search {