diff --git a/src/event.rs b/src/event.rs index 41f51fa..8dc2dd3 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1,6 +1,6 @@ use crate::proxy::ProxyType; -#[allow(dead_code)] +#[cfg_attr(not(feature="tui"), expect(dead_code))] pub enum AppEvent { GeoDbTotal(Option), GeoDbDownloaded(usize), @@ -20,6 +20,5 @@ pub enum Event { Tick, #[cfg(feature = "tui")] Crossterm(crossterm::event::Event), - #[allow(dead_code)] App(AppEvent), } diff --git a/src/main.rs b/src/main.rs index 3c25498..99ce384 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,10 +5,9 @@ clippy::nursery, clippy::cargo )] -#![allow( +#![expect( clippy::absolute_paths, clippy::allow_attributes_without_reason, - clippy::allow_attributes, clippy::arbitrary_source_item_ordering, clippy::blanket_clippy_restriction_lints, clippy::default_numeric_fallback, @@ -21,8 +20,6 @@ clippy::mod_module_files, clippy::multiple_crate_versions, clippy::pattern_type_mismatch, - clippy::pub_with_shorthand, - clippy::too_many_lines, clippy::question_mark_used, clippy::shadow_reuse, clippy::shadow_unrelated,