Skip to content

Commit

Permalink
🧹 make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jan 4, 2025
1 parent cbad667 commit 38ea470
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn outdated_version_check(message: String) -> bool {
message.clone(),
);
}
return true;
true
}

fn edition_compat_check(message: String) -> bool {
Expand Down Expand Up @@ -127,7 +127,7 @@ fn edition_compat_check(message: String) -> bool {
return true;
}
}
return true;
true
}

fn connectivity_check(message: String) -> bool {
Expand All @@ -146,7 +146,7 @@ fn connectivity_check(message: String) -> bool {
);
return false;
}
return true;
true
}

fn quick_message(message: String) {
Expand All @@ -158,7 +158,7 @@ fn quick_message(message: String) {
install_btn.set_sensitive(false);

let checks = [connectivity_check, edition_compat_check, outdated_version_check];
if !checks.iter().map(|x| x(message.clone())).all(|x| x) {
if !checks.iter().all(|x| x(message.clone())) {
// if any check failed, return
install_btn.set_sensitive(true);
return;
Expand Down
2 changes: 1 addition & 1 deletion src/pages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use gtk::{glib, Builder};
use once_cell::sync::Lazy;
use phf::phf_ordered_map;
use subprocess::{Exec, Redirection};
use tracing::{debug, info};
use tracing::debug;

#[macro_export]
macro_rules! create_gtk_button {
Expand Down

0 comments on commit 38ea470

Please sign in to comment.