refactor(proto): start replacing anyhow with thiserror
This commit is contained in:
parent
dbd0ef3970
commit
bb39d138d8
8 changed files with 57 additions and 15 deletions
|
|
@ -32,6 +32,6 @@ where
|
|||
let mut data = vec![0u8; (length - 4) as usize];
|
||||
self.inner.read_exact(&mut data).await?;
|
||||
|
||||
T::deserialize(variant, &data)
|
||||
Ok(T::deserialize(variant, &data)?)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue