mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
Remove unnecessary namespace qualifier (#660)
This commit is contained in:
+1
-1
@@ -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
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user