Refactor UserInput to use channels

This commit is contained in:
bakaq
2025-02-16 04:04:48 -03:00
parent 4e032c8a28
commit baae1dca15
3 changed files with 73 additions and 27 deletions
+1 -1
View File
@@ -620,7 +620,7 @@ fn callback_streams() {
let (mut user_input, streams) = StreamConfig::with_callbacks(
Some(Box::new(move |x| {
x.read_to_string(&mut *test_string2.borrow_mut()).unwrap();
x.read_to_string(&mut test_string2.borrow_mut()).unwrap();
})),
None,
);