Use idiomatic ownership transfer

paydii committed Aug 29, 2026 at 21:34 UTC d2e3836d9f62293a3102855b8f2a8b75639ba717
1 file changed +1 -1
src/chat.rs
+1 -1
@@ -2552,7 +2552,7 @@ mod tui {
2552 if app.input.trim().is_empty() {
2553 return None;
2554 }
2555 - let text = app.input.drain(..).collect::<String>();
2555 + let text = std::mem::take(&mut app.input);
2556 app.cursor = 0;
2557 Some(text)
2558 }