Skip to content

Commit

Permalink
chore: Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Mar 13, 2024
1 parent 9cf5631 commit 415969b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/audio_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct PulseServer {
}

#[derive(Debug)]
pub struct PulseError(&'static str);
pub struct PulseError(pub &'static str);

impl PulseServer {
pub fn create(
Expand Down
3 changes: 3 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use tokio::task::JoinHandle;
use crate::{
audio::audio_manager::PulseServer,
bluetooth::bluetooth_manager::{BluetoothAgent, BluetoothInterface},
macros::ErrorLevel,
network::network_manager::{get_wifi_devices, Device},
};

Expand Down Expand Up @@ -153,6 +154,8 @@ impl DaemonData {
if let Ok(mut res) = res {
audio_listener_ref.store(true, Ordering::SeqCst);
res.listen_to_messages();
} else {
ERROR!(res.err().unwrap().0, ErrorLevel::Critical);
}
});
}
Expand Down

0 comments on commit 415969b

Please sign in to comment.