Skip to content

Commit 34bcadc

Browse files
committed
fix fmt
1 parent 02237f2 commit 34bcadc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,16 @@ where
266266
// we expect CIDs to have a leading zero byte
267267
if cid.len() <= 1 || cid[0] != 0 {
268268
return Err(anyhow!("Invalid CID"));
269-
}
270-
269+
}
270+
271271
let cid_without_prefix = &cid[1..];
272272
if Cid::try_from(cid_without_prefix).is_err() {
273273
return Err(anyhow!("Invalid CID"));
274274
}
275275

276-
PyBytes::new(py, cid_without_prefix).into_pyobject(py)?.into()
276+
PyBytes::new(py, cid_without_prefix)
277+
.into_pyobject(py)?
278+
.into()
277279
}
278280
major::SIMPLE => match byte {
279281
// FIXME(MarshalX): should be more clear for bool?

0 commit comments

Comments
 (0)