enable all rustc lint groups

This commit is contained in:
monosans
2025-08-01 23:04:45 +03:00
parent d820e9406b
commit d0596a4c8b
3 changed files with 21 additions and 9 deletions
+13 -1
View File
@@ -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,
+7 -7
View File
@@ -104,7 +104,7 @@ pub async fn save_proxies(
"failed to parse proxy's exit ip as IpAddr",
)?;
asn_db
.lookup::<maxminddb::geoip2::Asn>(exit_ip_addr)
.lookup::<maxminddb::geoip2::Asn<'_>>(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::<maxminddb::geoip2::City>(exit_ip_addr)
.lookup::<maxminddb::geoip2::City<'_>>(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
}
+1 -1
View File
@@ -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);