Skip to content

Commit

Permalink
apply clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yaa110 committed Oct 29, 2023
1 parent 371119b commit 58da13e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
name = "tokio-tun"
readme = "README.md"
repository = "https://github.com/yaa110/tokio-tun"
version = "0.11.1"
version = "0.11.2"

[dependencies]
libc = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion src/tun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ impl Tun {
pub async fn send_all(&self, buf: &[u8]) -> io::Result<()> {
let mut remaining = buf;
while !remaining.is_empty() {
match self.send(&remaining).await? {
match self.send(remaining).await? {
0 => return Err(ErrorKind::WriteZero.into()),
n => {
let (_, rest) = mem::take(&mut remaining).split_at(n);
Expand Down

0 comments on commit 58da13e

Please sign in to comment.