diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-01-07 00:49:04 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-01-07 00:49:04 +0100 |
commit | 9cf950fd1618dc888b6271346386acc64c282177 (patch) | |
tree | 31b3977a2792e2fb5e001bf5c09514fe54b44e7c /src/client.rs | |
parent | a8c974d5cf836cc7f2a2f0ed47287aed77c2d7fd (diff) | |
download | mt_rudp-9cf950fd1618dc888b6271346386acc64c282177.tar.xz |
clippy
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.rs b/src/client.rs index e6d7e75..6785a1f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -36,7 +36,7 @@ pub async fn connect(addr: &str) -> io::Result<(RudpSender<Sender>, RudpReceiver let sock = Arc::new(net::UdpSocket::bind("0.0.0.0:0").await?); sock.connect(addr).await?; - Ok(new( + new( PeerID::Srv as u16, PeerID::Nil as u16, Sender { @@ -44,5 +44,5 @@ pub async fn connect(addr: &str) -> io::Result<(RudpSender<Sender>, RudpReceiver }, Receiver { sock }, ) - .await?) + .await } |