Skip to content

Commit

Permalink
Address some minor pedantic clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbabcock committed Nov 2, 2024
1 parent 6ee5ecb commit e079f2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ pub trait BitReader {
///
/// Refills the lookahead buffer anywhere between [[`MAX_READ_BITS`], 64] as
/// long as the end of the stream has not been reached. See how many bits
/// are in the buffer with [BitReader::lookahead_bits].
/// are in the buffer with [`BitReader::lookahead_bits`].
///
/// If [BitReader::lookahead_bits] is already in the specified range,
/// If [`BitReader::lookahead_bits`] is already in the specified range,
/// additional refills will have no effect.
fn refill_lookahead(&mut self);

Expand All @@ -414,7 +414,7 @@ pub trait BitReader {

/// Refills the buffer without bounds checking
///
/// Guard any usage with [BitReader::has_bits_remaining]
/// Guard any usage with [`BitReader::has_bits_remaining`]
///
/// # Safety
///
Expand Down Expand Up @@ -972,7 +972,7 @@ impl<'a> BitReader for LittleEndianReader<'a> {

#[inline]
fn refill_lookahead(&mut self) {
self.0.refill_lookahead()
self.0.refill_lookahead();
}

#[inline]
Expand Down Expand Up @@ -1112,7 +1112,7 @@ impl<'a> BitReader for BigEndianReader<'a> {

#[inline]
fn refill_lookahead(&mut self) {
self.0.refill_lookahead()
self.0.refill_lookahead();
}

#[inline]
Expand Down

0 comments on commit e079f2d

Please sign in to comment.