fix clippy::default_numeric_fallback
This commit is contained in:
+1
-1
@@ -10,7 +10,6 @@
|
||||
clippy::allow_attributes_without_reason,
|
||||
clippy::arbitrary_source_item_ordering,
|
||||
clippy::blanket_clippy_restriction_lints,
|
||||
clippy::default_numeric_fallback,
|
||||
clippy::else_if_without_else,
|
||||
clippy::float_arithmetic,
|
||||
clippy::implicit_return,
|
||||
@@ -21,6 +20,7 @@
|
||||
clippy::multiple_crate_versions,
|
||||
clippy::pattern_type_mismatch,
|
||||
clippy::question_mark_used,
|
||||
clippy::separated_literal_suffix,
|
||||
clippy::shadow_reuse,
|
||||
clippy::shadow_unrelated,
|
||||
clippy::single_call_fn,
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ pub async fn save_proxies(
|
||||
port: proxy.port,
|
||||
timeout: proxy
|
||||
.timeout
|
||||
.map(|d| (d.as_secs_f64() * 100.0).round() / 100.0),
|
||||
.map(|d| (d.as_secs_f64() * 100.0).round() / 100.0_f64),
|
||||
exit_ip: proxy.exit_ip.clone(),
|
||||
geolocation,
|
||||
});
|
||||
|
||||
+2
-2
@@ -273,9 +273,9 @@ fn draw(f: &mut Frame, state: &AppState, logger_state: &TuiWidgetState) {
|
||||
proxies_checked,
|
||||
if proxies_working != 0 {
|
||||
(proxies_working as f64 / proxies_checked as f64)
|
||||
* 100.0
|
||||
* 100.0_f64
|
||||
} else {
|
||||
0.0
|
||||
0.0_f64
|
||||
}
|
||||
)),
|
||||
layout[2],
|
||||
|
||||
Reference in New Issue
Block a user