Skip to content

Commit 38ea470

Browse files
committed
🧹 make clippy happy
1 parent cbad667 commit 38ea470

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎src/main.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn outdated_version_check(message: String) -> bool {
9898
message.clone(),
9999
);
100100
}
101-
return true;
101+
true
102102
}
103103

104104
fn edition_compat_check(message: String) -> bool {
@@ -127,7 +127,7 @@ fn edition_compat_check(message: String) -> bool {
127127
return true;
128128
}
129129
}
130-
return true;
130+
true
131131
}
132132

133133
fn connectivity_check(message: String) -> bool {
@@ -146,7 +146,7 @@ fn connectivity_check(message: String) -> bool {
146146
);
147147
return false;
148148
}
149-
return true;
149+
true
150150
}
151151

152152
fn quick_message(message: String) {
@@ -158,7 +158,7 @@ fn quick_message(message: String) {
158158
install_btn.set_sensitive(false);
159159

160160
let checks = [connectivity_check, edition_compat_check, outdated_version_check];
161-
if !checks.iter().map(|x| x(message.clone())).all(|x| x) {
161+
if !checks.iter().all(|x| x(message.clone())) {
162162
// if any check failed, return
163163
install_btn.set_sensitive(true);
164164
return;

‎src/pages.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use gtk::{glib, Builder};
1616
use once_cell::sync::Lazy;
1717
use phf::phf_ordered_map;
1818
use subprocess::{Exec, Redirection};
19-
use tracing::{debug, info};
19+
use tracing::debug;
2020

2121
#[macro_export]
2222
macro_rules! create_gtk_button {

0 commit comments

Comments
 (0)