Fix win compile error (Missing trait)

This commit is contained in:
Ashcon Mohseninia 2022-10-02 19:31:07 +01:00
parent a66bd2c676
commit ca2f888050
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ impl PayloadChannel for Nag52USB {
to_write.push((addr >> 8) as u8);
to_write.push((addr & 0xFF) as u8);
to_write.extend_from_slice(&buffer);
p.write_all(&to_write)?;
p.write_all(&to_write).map_err(|e| ChannelError::IOError(e))?;
}
Ok(())
}