diff --git a/src/manager.rs b/src/manager.rs index 84eb5fc..2a69fa8 100644 --- a/src/manager.rs +++ b/src/manager.rs @@ -333,7 +333,7 @@ impl SteamOSManager { mod test { use super::*; use crate::{power, testing}; - use std::collections::{HashMap, HashSet}; + use std::collections::HashMap; use std::iter::zip; use tokio::fs::{create_dir_all, read, write}; use zbus::{Connection, ConnectionBuilder, Interface}; diff --git a/src/user_manager.rs b/src/user_manager.rs index a57c470..f798e85 100644 --- a/src/user_manager.rs +++ b/src/user_manager.rs @@ -50,7 +50,6 @@ macro_rules! setter { } pub struct SteamOSManagerUser { - connection: Connection, proxy: Proxy<'static>, hdmi_cec: HdmiCecControl<'static>, } @@ -59,7 +58,6 @@ impl SteamOSManagerUser { pub async fn new(connection: Connection, system_conn: &Connection) -> Result { Ok(SteamOSManagerUser { hdmi_cec: HdmiCecControl::new(&connection).await?, - connection, proxy: Proxy::new( system_conn, "com.steampowered.SteamOSManager1", @@ -248,10 +246,10 @@ impl SteamOSManagerUser { #[cfg(test)] mod test { use super::*; - use crate::{power, testing}; + use crate::testing; use std::collections::{HashMap, HashSet}; use std::iter::zip; - use tokio::fs::{create_dir_all, read, write}; + use tokio::fs::read; use zbus::{Connection, ConnectionBuilder, Interface}; use zbus_xml::{Method, Node, Property};