mirror of
https://codeberg.org/icewind/evtype.git
synced 2026-06-03 09:34:11 +02:00
dont error hard on invalid utf8 input
This commit is contained in:
parent
95776c9560
commit
00e48c4f28
1 changed files with 4 additions and 2 deletions
|
|
@ -55,8 +55,10 @@ fn main() -> Result<(), MainError> {
|
|||
|
||||
while let Some(Ok(mut stream)) = incoming.next() {
|
||||
text_buffer.clear();
|
||||
stream.read_to_string(&mut text_buffer)?;
|
||||
type_string(&mut keyboard, &text_buffer)?;
|
||||
match stream.read_to_string(&mut text_buffer) {
|
||||
Ok(_) => type_string(&mut keyboard, &text_buffer)?,
|
||||
Err(e) => eprintln!("{}", e),
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue