From 55b2acb533513daff79bf37a69ba2adcf47062fe Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 3 May 2024 17:27:12 -0700 Subject: [PATCH] Fix warnings --- src/manager.rs | 2 +- src/user_manager.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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};