diff --git a/src/main.rs b/src/main.rs index bb8b443..e506ff7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,16 @@ -#![warn( +#![deny( + warnings, + deprecated_safe, + future_incompatible, + keyword_idents, + let_underscore, + nonstandard_style, + refining_impl_trait, + rust_2018_compatibility, + rust_2018_idioms, + rust_2021_compatibility, + rust_2024_compatibility, + unused, clippy::all, clippy::pedantic, clippy::restriction, diff --git a/src/output.rs b/src/output.rs index ae03f4f..d08c48a 100644 --- a/src/output.rs +++ b/src/output.rs @@ -104,7 +104,7 @@ pub async fn save_proxies( "failed to parse proxy's exit ip as IpAddr", )?; asn_db - .lookup::(exit_ip_addr) + .lookup::>(exit_ip_addr) .wrap_err_with(move || { format!( "failed to lookup {exit_ip_addr} in ASN \ @@ -123,13 +123,13 @@ pub async fn save_proxies( "failed to parse proxy's exit ip as IpAddr", )?; geo_db - .lookup::(exit_ip_addr) + .lookup::>(exit_ip_addr) .wrap_err_with(move || { - format!( - "failed to lookup {exit_ip_addr} in \ - geolocation database" - ) - })? + format!( + "failed to lookup {exit_ip_addr} in \ + geolocation database" + ) + })? } else { None } diff --git a/src/tui.rs b/src/tui.rs index 61f40db..1e6389d 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -140,7 +140,7 @@ async fn crossterm_event_listener( } } -fn draw(f: &mut Frame, state: &AppState, logger_state: &TuiWidgetState) { +fn draw(f: &mut Frame<'_>, state: &AppState, logger_state: &TuiWidgetState) { let outer_block = Block::default() .title("https://github.com/monosans/proxy-scraper-checker") .title_alignment(Alignment::Center);