From 8223266c9100187c84f84e3f9b06158073fdc947 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sat, 22 Jun 2024 03:36:02 +0300 Subject: [PATCH] allow some unused imports, remove unused import --- crates/lib/src/games/definitions.rs | 3 --- crates/lib/src/games/minecraft/mod.rs | 1 + crates/lib/src/lib.rs | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 7897ef96..55f14538 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -8,9 +8,6 @@ use crate::protocols::types::{GatherToggle, ProprietaryProtocol}; use crate::protocols::valve::GatheringSettings; use phf::{phf_map, Map}; -#[cfg(feature = "tls")] -use crate::protocols::epic::Credentials; - macro_rules! game { ($name: literal, $default_port: expr, $protocol: expr) => { game!( diff --git a/crates/lib/src/games/minecraft/mod.rs b/crates/lib/src/games/minecraft/mod.rs index aa8b28ea..dbb8c343 100644 --- a/crates/lib/src/games/minecraft/mod.rs +++ b/crates/lib/src/games/minecraft/mod.rs @@ -4,6 +4,7 @@ pub mod protocol; /// All types used by the implementation. pub mod types; +#[allow(unused_imports)] pub use protocol::*; pub use types::*; diff --git a/crates/lib/src/lib.rs b/crates/lib/src/lib.rs index ea27255b..be23fecf 100644 --- a/crates/lib/src/lib.rs +++ b/crates/lib/src/lib.rs @@ -55,6 +55,7 @@ pub mod capture; pub use errors::*; #[cfg(feature = "games")] pub use games::*; +#[allow(unused_imports)] #[cfg(feature = "games")] pub use query::*; #[cfg(feature = "services")]