diff --git a/czkawka_core/src/same_music.rs b/czkawka_core/src/same_music.rs index 64d2269..974fc98 100644 --- a/czkawka_core/src/same_music.rs +++ b/czkawka_core/src/same_music.rs @@ -272,8 +272,10 @@ impl SameMusic { pub fn set_check_type(&mut self, check_type: CheckingMethod) { assert!([CheckingMethod::AudioTags, CheckingMethod::AudioContent].contains(&check_type)); - self.check_type = check_type + self.check_type = check_type; } + + #[must_use] pub fn get_check_type(&self) -> CheckingMethod { self.check_type } diff --git a/czkawka_gui/src/connect_things/connect_same_music_mode_changed.rs b/czkawka_gui/src/connect_things/connect_same_music_mode_changed.rs index 5d5c693..332a531 100644 --- a/czkawka_gui/src/connect_things/connect_same_music_mode_changed.rs +++ b/czkawka_gui/src/connect_things/connect_same_music_mode_changed.rs @@ -65,12 +65,12 @@ pub fn connect_same_music_change_mode(gui_data: &GuiData) { fn disable_enable_buttons(buttons: &[CheckButton; 7], scales: &[Widget; 4], current_mode: CheckingMethod) { match current_mode { CheckingMethod::AudioTags => { - buttons.iter().for_each(|e| e.show()); - scales.iter().for_each(|e| e.hide()); + buttons.iter().for_each(WidgetExt::show); + scales.iter().for_each(WidgetExt::hide); } CheckingMethod::AudioContent => { - buttons.iter().for_each(|e| e.hide()); - scales.iter().for_each(|e| e.show()); + buttons.iter().for_each(WidgetExt::hide); + scales.iter().for_each(WidgetExt::show); } _ => panic!(), } diff --git a/czkawka_gui/src/help_functions.rs b/czkawka_gui/src/help_functions.rs index 558f417..a134492 100644 --- a/czkawka_gui/src/help_functions.rs +++ b/czkawka_gui/src/help_functions.rs @@ -775,7 +775,7 @@ pub fn scale_set_min_max_values(scale: &Scale, minimum: f64, maximum: f64, curre scale.set_fill_level(maximum); scale.set_value(current_value); if let Some(step) = step { - scale.adjustment().set_step_increment(step) + scale.adjustment().set_step_increment(step); } }