Skip to content

Commit 2fa121a

Browse files
Update src/lib.rs
Co-Authored-By: Sebastian <[email protected]>
1 parent 7ea2543 commit 2fa121a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ impl<'f, U: AsRef<[u8]>> CheckBase32<()> for U {
384384
self.as_ref()
385385
.iter()
386386
.map(|x| u5::try_from_u8(*x).map(|_| ()))
387-
.collect::<Result<(), Error>>()
387+
.find(|r| r.is_err())
388+
.unwrap_or(Ok(()))
388389
}
389390
}
390391

0 commit comments

Comments
 (0)