Fix warnings

This commit is contained in:
Vicki Pfau 2024-05-03 17:27:12 -07:00
parent 9339169d27
commit 55b2acb533
2 changed files with 3 additions and 5 deletions

View file

@ -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};

View file

@ -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<Self> {
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};