Remove unnecessary namespace qualifier (#660)

This commit is contained in:
Brad Dunbar
2024-01-28 14:07:11 +03:30
committed by GitHub
parent 0864aea970
commit 0ba3b4c4cd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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()
}
}
@@ -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,
{