summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-03-23 18:56:30 +0100
committermo8it <mo8it@proton.me>2024-03-23 18:56:30 +0100
commit0d93266462f56d28501f068a764405a0cd0bf41a (patch)
tree62bbf007b5486e52a675f474c1e59ad682d11c3f /src
parent3dce7e56961a40748f428d10c50540a075839f8d (diff)
Initialize the input buffer with some capacity
Diffstat (limited to 'src')
-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 {