Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Borcherding committed Feb 27, 2024
1 parent 75d3ebe commit e2eb2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustbus/src/connection/ll_conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl IncomingBuffer {
fn take(&mut self) -> Vec<u8> {
self.buf.truncate(self.filled);
self.filled = 0;
std::mem::replace(&mut self.buf, Vec::new())
std::mem::take(&mut self.buf)
}

fn peek(&self) -> &[u8] {
Expand Down

0 comments on commit e2eb2ee

Please sign in to comment.