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.
1 parent a1f456e commit f8d7834Copy full SHA for f8d7834
src/providers/file/index.rs
@@ -73,11 +73,10 @@ where
73
while file.read_exact(&mut key_buf).is_ok() {
74
let mut values = IndexSet::new();
75
let mut len = [0u8; 4];
76
- file.read_exact(&mut len).expect("cannot read index file");
+ file.read_exact(&mut len)?;
77
let mut len = u32::from_le_bytes(len);
78
while len > 0 {
79
- file.read_exact(&mut val_buf)
80
- .expect("cannot read index file");
+ file.read_exact(&mut val_buf)?;
81
let res = values.insert(val_buf);
82
debug_assert!(res, "duplicate id in index file");
83
len -= 1;
0 commit comments