Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 12, 2024
1 parent 7af435c commit bdffbe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/zerovec/src/cow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl<'a, V: ?Sized> Clone for VarZeroCow<'a, V> {
// Invariants upheld:
// 1 & 2: The bytes came from `self` so they're a valid value and byte slice
// 3: This is borrowed (we're sharing a borrow), so we set owned to false.
buf: self.buf.clone(),
buf: self.buf,
owned: false,
_phantom: PhantomData,
}
Expand Down Expand Up @@ -313,7 +313,7 @@ impl<'a, V: VarULE + ?Sized> ZeroFrom<'a, V> for VarZeroCow<'a, V> {
impl<'a, 'b, V: VarULE + ?Sized> ZeroFrom<'a, VarZeroCow<'b, V>> for VarZeroCow<'a, V> {
#[inline]
fn zero_from(other: &'a VarZeroCow<'b, V>) -> Self {
Self::new_borrowed(&other)
Self::new_borrowed(other)
}
}

Expand Down

0 comments on commit bdffbe1

Please sign in to comment.