Skip to content

Commit 0b936b2

Browse files
committed
fix more ifs
1 parent d04d362 commit 0b936b2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

blobby/src/decode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl Header {
6363
/// Parse blobby header.
6464
///
6565
/// # Errors
66-
/// - If data could not be parsed successfully.
66+
/// If data could not be parsed successfully.
6767
pub const fn parse(data: &mut &[u8]) -> Result<Self, Error> {
6868
match (read_vlq(data), read_vlq(data)) {
6969
(Ok(items_len), Ok(dedup_len)) => Ok(Header {
@@ -78,7 +78,7 @@ impl Header {
7878
/// Parse blobby data into an array.
7979
///
8080
/// # Errors
81-
/// - If data could not be parsed successfully.
81+
/// If data could not be parsed successfully.
8282
pub const fn parse_into_array<const ITEMS_LEN: usize, const DEDUP_LEN: usize>(
8383
mut data: &[u8],
8484
) -> Result<[&[u8]; ITEMS_LEN], Error> {

block-buffer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ where
337337
/// Deserialize buffer from a byte array.
338338
///
339339
/// # Errors
340-
/// - If algorithm-specific invariant fails to hold
340+
/// If algorithm-specific invariant fails to hold
341341
pub fn deserialize(buf: &SerializedBuffer<BS, K>) -> Result<Self, Error> {
342342
let (pos, block) = buf.split_at(1);
343343
let pos = usize::from(pos[0]);

block-padding/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ impl<'a, BlockSize: ArraySize> PaddedData<'a, BlockSize> {
403403
/// Unwrap the `Pad` variant.
404404
///
405405
/// # Panics
406-
/// - If `self` is a variant other than [`PaddedData::Pad`].
406+
/// If `self` is a variant other than [`PaddedData::Pad`].
407407
pub fn unwrap(self) -> (&'a [Array<u8, BlockSize>], Array<u8, BlockSize>) {
408408
match self {
409409
PaddedData::Pad { blocks, tail_block } => (blocks, tail_block),

0 commit comments

Comments
 (0)