We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Bincode
1 parent 3998788 commit fc76d66Copy full SHA for fc76d66
crates/file_store/src/lib.rs
@@ -18,6 +18,8 @@ pub enum FileError {
18
Io(io::Error),
19
/// Magic bytes do not match what is expected.
20
InvalidMagicBytes { got: Vec<u8>, expected: Vec<u8> },
21
+ /// Failure to decode data from the file.
22
+ Bincode(bincode::ErrorKind),
23
}
24
25
impl core::fmt::Display for FileError {
@@ -29,6 +31,7 @@ impl core::fmt::Display for FileError {
29
31
"file has invalid magic bytes: expected={:?} got={:?}",
30
32
expected, got,
33
),
34
+ Self::Bincode(e) => write!(f, "bincode error while reading entry {}", e),
35
36
37
0 commit comments