diff options
| author | Fuwn <[email protected]> | 2024-06-03 14:57:47 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-03 14:57:47 +0000 |
| commit | 3abe7df3fbc12a8df259f48c746f2b9344a5f33c (patch) | |
| tree | efec8803b8b65db8f56fafe884f879921091805a /crates/whirl_server/src/hub.rs | |
| parent | Merge pull request #153 from Whirlsplash/renovate/actions-checkout-3.x (diff) | |
| download | whirl-old.tar.xz whirl-old.zip | |
fix: bump rust and update accordinglyorigin/oldold
Diffstat (limited to 'crates/whirl_server/src/hub.rs')
| -rw-r--r-- | crates/whirl_server/src/hub.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/whirl_server/src/hub.rs b/crates/whirl_server/src/hub.rs index 848862d..f271c28 100644 --- a/crates/whirl_server/src/hub.rs +++ b/crates/whirl_server/src/hub.rs @@ -10,7 +10,6 @@ use std::{error::Error, net::SocketAddr, sync::Arc}; -use num_traits::cast::AsPrimitive; use tokio::{io::AsyncWriteExt, net::TcpStream, sync::Mutex}; use tokio_stream::StreamExt; use tokio_util::codec::{BytesCodec, Decoder}; @@ -71,7 +70,7 @@ impl Server for Hub { Some(Ok(msg)) => { // trace!("got some bytes: {:?}", &msg); for msg in parse_commands_from_packet(msg) { - match num_traits::FromPrimitive::from_i32(msg.get(2).unwrap().to_owned().as_(): i32) { + match num_traits::FromPrimitive::from_i32(msg.get(2).unwrap().to_owned() as i32) { Some(Command::PropReq) => { debug!("received property request from client"); |