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 02237f2 commit 34bcadcCopy full SHA for 34bcadc
1 file changed
src/lib.rs
@@ -266,14 +266,16 @@ where
266
// we expect CIDs to have a leading zero byte
267
if cid.len() <= 1 || cid[0] != 0 {
268
return Err(anyhow!("Invalid CID"));
269
- }
270
-
+ }
+
271
let cid_without_prefix = &cid[1..];
272
if Cid::try_from(cid_without_prefix).is_err() {
273
274
}
275
276
- PyBytes::new(py, cid_without_prefix).into_pyobject(py)?.into()
+ PyBytes::new(py, cid_without_prefix)
277
+ .into_pyobject(py)?
278
+ .into()
279
280
major::SIMPLE => match byte {
281
// FIXME(MarshalX): should be more clear for bool?
0 commit comments