diff options
Diffstat (limited to 'src/client/connector.rs')
| -rw-r--r-- | src/client/connector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/connector.rs b/src/client/connector.rs index f57e388..f48b039 100644 --- a/src/client/connector.rs +++ b/src/client/connector.rs @@ -7,7 +7,7 @@ use std::{ }; use crate::client::Client; -use remote_control_rs::{executor::Executor, tasks::NETWORK_T}; +use remote_control_rs::{executor::Executor, tasks::client::NETWORK_T}; pub type Result<T: Display, E: Debug> = result::Result<T, E>; @@ -28,7 +28,7 @@ pub trait Connection { fn get_ip(&self) -> Option<IpAddr>; fn force_network(&mut self) { - _ = Executor::new(&NETWORK_T, ["true"]); + _ = Executor::new(NETWORK_T.as_ref(), ["true"]); } fn init<'a>(&self, c: &Client<'a, Self>) -> std::result::Result<(), Self::Err> |
