Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
toidiu committed May 3, 2024
1 parent 8b92781 commit 8c1d39c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions quic/s2n-quic-core/src/buffer/reassembler/slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Slot {
}

#[inline(always)]
pub fn try_write_reader<R: Reader>(
pub fn try_write_reader<R>(
&mut self,
reader: &mut R,
filled_slot: &mut bool,
Expand Down Expand Up @@ -108,7 +108,7 @@ impl Slot {
}

#[inline(always)]
fn write_reader_end<R: Reader>(
fn write_reader_end<R>(
&mut self,
reader: &mut R,
filled_slot: &mut bool,
Expand Down
2 changes: 1 addition & 1 deletion quic/s2n-quic-core/src/interval_set/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ impl<T: IntervalBound> IntervalSet<T> {
#[inline]
pub fn union(&mut self, other: &Self) -> Result<(), IntervalSetError> {
if self.intervals.is_empty() {
self.intervals = other.intervals.clone();
self.intervals.clone_from(&other.intervals);
return Ok(());
}

Expand Down

0 comments on commit 8c1d39c

Please sign in to comment.