summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2025-04-09 20:22:17 +0300
committerVika <vika@fireburn.ru>2025-04-09 20:22:17 +0300
commit2e63356d2f9154d374f2f9084c57b48fe5558395 (patch)
treee1e2a741fbe18f791b66e8fce4da8034eafd0a3f /src
parent936ed2d5d00199c545a8cdac763909cc63be096b (diff)
downloadbowl-2e63356d2f9154d374f2f9084c57b48fe5558395.tar.zst
smart_summary: fix Clippy warnings
Diffstat (limited to 'src')
-rw-r--r--src/components/smart_summary.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/components/smart_summary.rs b/src/components/smart_summary.rs
index 5b98186..de6eb91 100644
--- a/src/components/smart_summary.rs
+++ b/src/components/smart_summary.rs
@@ -228,7 +228,7 @@ impl Component for SmartSummaryButton {
             Input::ButtonPressed => {
                 let settings = gio::Settings::new(crate::APPLICATION_ID);
                 if !settings.get::<bool>("smart-summary-show-warning") {
-                    return self.update(Input::WarningAccepted, sender, _root);
+                    self.update(Input::WarningAccepted, sender, _root)
                 } else {
                     // TODO: show warning dialog
                     let skip_warning_checkbox = gtk::CheckButton::with_label(
@@ -258,11 +258,8 @@ impl Component for SmartSummaryButton {
                         None::<&gio::Cancellable>,
                         glib::clone!(
                             #[strong] sender,
-                            move |res| match res.as_str() {
-                                "continue" => {
-                                    sender.input(Input::WarningAccepted);
-                                },
-                                _ => {},
+                            move |res| if res.as_str() == "continue" {
+                                sender.input(Input::WarningAccepted);
                             }
                         ))
                 }