diff options
| author | mo8it <mo8it@proton.me> | 2024-03-23 18:56:30 +0100 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-03-23 18:56:30 +0100 |
| commit | 0d93266462f56d28501f068a764405a0cd0bf41a (patch) | |
| tree | 62bbf007b5486e52a675f474c1e59ad682d11c3f /src/main.rs | |
| parent | 3dce7e56961a40748f428d10c50540a075839f8d (diff) | |
Initialize the input buffer with some capacity
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7c469d5..2b6a48c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -263,7 +263,7 @@ fn spawn_watch_shell( println!("Welcome to watch mode! You can type 'help' to get an overview of the commands you can use here."); thread::spawn(move || { - let mut input = String::new(); + let mut input = String::with_capacity(32); let mut stdin = io::stdin().lock(); loop { |
