We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e97eec commit 70ae180Copy full SHA for 70ae180
1 file changed
cli/src/lib.rs
@@ -322,7 +322,9 @@ impl FloatVectorFormat {
322
reader.read_exact(&mut buf).with_context(|| {
323
format!("Could not read value at index {i} from {}", path_display)
324
})?;
325
- let bytes = buf.as_slice().into();
+ let bytes = buf.as_slice().try_into().map_err(|_| {
326
+ anyhow!("Could not convert bytes at index {i} in {}", path_display)
327
+ })?;
328
result.push(F::from_be_bytes(bytes));
329
}
330
Ok(result)
0 commit comments