summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs2
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 {