diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-03-08 13:43:28 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-03-08 13:43:28 -0500 |
commit | c7729f3522701248e1584e13ed08ec677aa42580 (patch) | |
tree | 45778281fb22a35a2bcb2fe5cf86a15a3be7c229 /src/bin/ttyplay/input.rs | |
parent | 9b1d7a190b8f660c5db77cc311a5c613990cdef5 (diff) | |
download | ttyrec-bin-c7729f3522701248e1584e13ed08ec677aa42580.tar.gz ttyrec-bin-c7729f3522701248e1584e13ed08ec677aa42580.zip |
clippy
Diffstat (limited to 'src/bin/ttyplay/input.rs')
-rw-r--r-- | src/bin/ttyplay/input.rs | 4 |
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 { |