diff options
| author | Fuwn <[email protected]> | 2021-05-28 00:06:40 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-28 00:06:40 +0000 |
| commit | d87b4825480f938cfa552421e220d8f85a1bee10 (patch) | |
| tree | d9c69c0dc4f5a9e876460d10e101d936f424bee5 /crates/whirl_server/src/interaction/peer.rs | |
| parent | Merge branch 'develop' of https://github.com/Whirlsplash/whirl into develop (diff) | |
| download | whirl-d87b4825480f938cfa552421e220d8f85a1bee10.tar.xz whirl-d87b4825480f938cfa552421e220d8f85a1bee10.zip | |
fix(global): a lot of clippy warnings
This change makes clippy **a lot** more strict.
Diffstat (limited to 'crates/whirl_server/src/interaction/peer.rs')
| -rw-r--r-- | crates/whirl_server/src/interaction/peer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/whirl_server/src/interaction/peer.rs b/crates/whirl_server/src/interaction/peer.rs index 38c02c5..6a04b17 100644 --- a/crates/whirl_server/src/interaction/peer.rs +++ b/crates/whirl_server/src/interaction/peer.rs @@ -20,11 +20,11 @@ impl Peer { state: Arc<Mutex<Shared>>, bytes: Framed<TcpStream, BytesCodec>, username: String, - ) -> std::io::Result<Peer> { + ) -> std::io::Result<Self> { let (tx, rx) = mpsc::unbounded_channel(); state.lock().await.peers.insert(username, tx); - Ok(Peer { + Ok(Self { bytes, rx, }) |