Skip to content

Commit 68067ae

Browse files
committed
clippy
1 parent 677ea51 commit 68067ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/net/src/connection.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ impl StreamWriter {
108108
buffer
109109
};
110110

111-
self.sender
112-
.send(bytes)
113-
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;
111+
self.sender.send(bytes).map_err(std::io::Error::other)?;
114112
Ok(())
115113
}
116114
}

0 commit comments

Comments
 (0)