From 3abe7df3fbc12a8df259f48c746f2b9344a5f33c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 Jun 2024 14:57:47 +0000 Subject: fix: bump rust and update accordingly --- crates/whirl_server/src/hub.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/whirl_server/src/hub.rs') 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"); -- cgit v1.2.3