Fix warnings

This commit is contained in:
Lennard Kittner
2025-03-22 12:27:18 +01:00
parent cb6bd0c574
commit 08366a63c8
3 changed files with 3 additions and 5 deletions

View File

@@ -3,7 +3,6 @@ use std::time::Duration;
use clap::{Arg, Command};
use hyper_x_cloud_ii_wireless::devices::{cloud_ii_wireless_dts::CloudIIWirelessDTS, Device};
//TODO: error handling e.g. reconnect on "no such device" error
fn main() {
let matches = Command::new(env!("CARGO_PKG_NAME"))
.version(env!("CARGO_PKG_VERSION"))

View File

@@ -1,9 +1,8 @@
use std::sync::{Arc, RwLock};
use std::time::Duration;
mod status_tray;
use status_tray::{StatusTray, TrayHandler};
use hyper_x_cloud_ii_wireless::devices::{connect_compatible_device, Device, DeviceError};
use hyper_x_cloud_ii_wireless::devices::{connect_compatible_device, DeviceError};
fn handle_error(error: DeviceError) -> String {
match error {
@@ -23,6 +22,7 @@ fn handle_error(error: DeviceError) -> String {
}
}
//TODO: error handling e.g. reconnect on "no such device" error
fn main() {
let mut device = loop {
match connect_compatible_device() {

View File

@@ -1,6 +1,5 @@
use hyper_x_cloud_ii_wireless::devices::{Device, DeviceState};
use hyper_x_cloud_ii_wireless::devices::DeviceState;
use ksni::{menu::StandardItem, Handle, MenuItem, ToolTip, Tray, TrayService};
use std::sync::{Arc, RwLock, RwLockReadGuard};
pub struct TrayHandler {
handle: Handle<StatusTray>,