File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
104104fn 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
133133fn 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
152152fn 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 ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use gtk::{glib, Builder};
1616use once_cell:: sync:: Lazy ;
1717use phf:: phf_ordered_map;
1818use subprocess:: { Exec , Redirection } ;
19- use tracing:: { debug, info } ;
19+ use tracing:: debug;
2020
2121#[ macro_export]
2222macro_rules! create_gtk_button {
You can’t perform that action at this time.
0 commit comments