Skip to content

Commit

Permalink
Remove unnecessary namespace qualifier (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed Jan 28, 2024
1 parent 0864aea commit 0ba3b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ impl Buf for Bytes {
}
}

fn copy_to_bytes(&mut self, len: usize) -> crate::Bytes {
fn copy_to_bytes(&mut self, len: usize) -> Self {
if len == self.remaining() {
core::mem::replace(self, Bytes::new())
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/bytes_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ impl Buf for BytesMut {
}
}

fn copy_to_bytes(&mut self, len: usize) -> crate::Bytes {
fn copy_to_bytes(&mut self, len: usize) -> Bytes {
self.split_to(len).freeze()
}
}
Expand Down Expand Up @@ -1110,7 +1110,7 @@ unsafe impl BufMut for BytesMut {
// Specialize these methods so they can skip checking `remaining_mut`
// and `advance_mut`.

fn put<T: crate::Buf>(&mut self, mut src: T)
fn put<T: Buf>(&mut self, mut src: T)
where
Self: Sized,
{
Expand Down

0 comments on commit 0ba3b4c

Please sign in to comment.