1
0
Fork 0
mirror of https://github.com/icewind1991/mhz19-rs synced 2026-06-03 09:34:12 +02:00

make it build again

This commit is contained in:
Robin Appelman 2023-10-23 19:40:17 +02:00
commit 9ee5041003
2 changed files with 1 additions and 12 deletions

View file

@ -19,4 +19,4 @@ path = "src/bin.rs"
[dependencies]
"serial" = "0.4"
err-derive = "0.1"
err-derive = "0.3"

View file

@ -14,17 +14,6 @@ pub enum Error {
CRC,
}
impl From<serial::Error> for Error {
fn from(err: serial::Error) -> Self {
Error::Serial(err)
}
}
impl From<std::io::Error> for Error {
fn from(err: std::io::Error) -> Self {
Error::IO(err)
}
}
pub type Result<T> = std::result::Result<T, Error>;