diff --git a/src/components/bluetooth/bluetooth_box.rs b/src/components/bluetooth/bluetooth_box.rs index 65cb7c1..e83a817 100644 --- a/src/components/bluetooth/bluetooth_box.rs +++ b/src/components/bluetooth/bluetooth_box.rs @@ -173,7 +173,7 @@ fn bluetooth_enabled_switch_handler( glib::Propagation::Proceed } -pub fn populate_conntected_bluetooth_devices(bluetooth_box: Arc) { +pub fn populate_connected_bluetooth_devices(bluetooth_box: Arc) { // TODO handle saved devices -> they also exist gio::spawn_blocking(move || { let ref_box = bluetooth_box.clone(); diff --git a/src/components/output/sink_box_handlers.rs b/src/components/output/sink_box_handlers.rs index 1352bd9..8039cd0 100644 --- a/src/components/output/sink_box_handlers.rs +++ b/src/components/output/sink_box_handlers.rs @@ -144,9 +144,7 @@ pub fn sink_removed_handler(sink_box: Arc, ir: SinkRemoved) -> bool { return; } } - sink_box_imp - .reset_sinks - .remove(&*entry.clone().unwrap().0); + sink_box_imp.reset_sinks.remove(&*entry.clone().unwrap().0); let alias = entry.unwrap().2; let mut index = sink_box_imp.reset_model_index.write().unwrap(); let model_list = sink_box_imp.reset_model_list.write().unwrap(); @@ -249,9 +247,7 @@ pub fn input_stream_removed_handler(sink_box: Arc, ir: InputStreamRemov if entry.is_none() { return; } - sink_box_imp - .reset_input_streams - .remove(&*entry.unwrap().0); + sink_box_imp.reset_input_streams.remove(&*entry.unwrap().0); }); }); true diff --git a/src/components/window/handle_sidebar_click.rs b/src/components/window/handle_sidebar_click.rs index 7eb6d41..54b97b5 100644 --- a/src/components/window/handle_sidebar_click.rs +++ b/src/components/window/handle_sidebar_click.rs @@ -8,7 +8,7 @@ use std::sync::Arc; use crate::components::base::setting_box::SettingBox; use crate::components::base::utils::{start_audio_listener, Listeners, Position}; use crate::components::bluetooth::bluetooth_box::{ - populate_conntected_bluetooth_devices, start_bluetooth_listener, BluetoothBox, + populate_connected_bluetooth_devices, start_bluetooth_listener, BluetoothBox, }; use crate::components::input::source_box::{populate_sources, SourceBox}; use crate::components::output::sink_box::{populate_sinks, SinkBox}; @@ -29,7 +29,7 @@ pub const HANDLE_CONNECTIVITY_CLICK: fn(Arc, FlowBox, Rc, FlowBox, Rc