mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-10 00:20:29 -04:00
Fix warnings
This commit is contained in:
parent
9339169d27
commit
55b2acb533
2 changed files with 3 additions and 5 deletions
|
@ -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};
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue