mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-16 00:00:15 +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 {
|
||||
|
||||
Reference in New Issue
Block a user