Refactor UserInput to use channels

This commit is contained in:
bakaq
2025-01-30 06:14:38 -03:00
parent 4e032c8a28
commit baae1dca15
3 changed files with 73 additions and 27 deletions

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,
);