From 460d785b5e227b4d1435fbc44950db5e47315310 Mon Sep 17 00:00:00 2001 From: Maple Nebel Date: Mon, 1 Jun 2026 09:58:05 +0200 Subject: [PATCH] [skip ci] chore: get rid of warnings --- proxy-common/src/lib.rs | 1 - rnex-core/src/nex/matchmake.rs | 11 ++++++++--- rnex-core/src/nex/user.rs | 2 +- rnex-core/src/rmc/structures/matchmake.rs | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/proxy-common/src/lib.rs b/proxy-common/src/lib.rs index 20f90c1..d696c72 100644 --- a/proxy-common/src/lib.rs +++ b/proxy-common/src/lib.rs @@ -16,7 +16,6 @@ use rnex_core::{ }; use std::{ env::{self, VarError}, - error, net::{AddrParseError, Ipv4Addr, SocketAddr, SocketAddrV4}, ops::Deref, panic, diff --git a/rnex-core/src/nex/matchmake.rs b/rnex-core/src/nex/matchmake.rs index 5fc31d8..8dde574 100644 --- a/rnex-core/src/nex/matchmake.rs +++ b/rnex-core/src/nex/matchmake.rs @@ -1,7 +1,6 @@ use log::info; use rand::random; use rnex_core::PID; -use rnex_core::kerberos::KerberosDateTime; use rnex_core::nex::user::User; use rnex_core::rmc::protocols::notifications::notification_types::{ HOST_CHANGED, OWNERSHIP_CHANGED, @@ -11,9 +10,8 @@ use rnex_core::rmc::response::ErrorCode; use rnex_core::rmc::response::ErrorCode::{Core_InvalidArgument, RendezVous_SessionVoid}; use rnex_core::rmc::structures::matchmake::gathering_flags::PERSISTENT_GATHERING; use rnex_core::rmc::structures::matchmake::{ - Gathering, MatchmakeParam, MatchmakeSession, MatchmakeSessionSearchCriteria, + Gathering, MatchmakeSession, MatchmakeSessionSearchCriteria, }; -use rnex_core::rmc::structures::variant::Variant; use std::collections::HashMap; use std::str::FromStr; use std::sync::atomic::AtomicU32; @@ -162,6 +160,13 @@ impl ExtendedMatchmakeSession { cfg_if::cfg_if! { if #[cfg(feature = "v3-5-0")]{ + use rnex_core::{ + rmc::structures::{ + variant::Variant, + matchmake::MatchmakeParam + }, + kerberos::KerberosDateTime + }; let mm_session = MatchmakeSession { gathering: Gathering { self_gid: gid, diff --git a/rnex-core/src/nex/user.rs b/rnex-core/src/nex/user.rs index e2b9793..8dc705f 100644 --- a/rnex-core/src/nex/user.rs +++ b/rnex-core/src/nex/user.rs @@ -37,7 +37,7 @@ use std::env; use std::str::FromStr; use cfg_if::cfg_if; -use log::{error, info, warn}; +use log::{error, info}; use macros::rmc_struct; use rnex_core::prudp::socket_addr::PRUDPSockAddr; use rnex_core::rmc::protocols::notifications::{NotificationEvent, RemoteNotification}; diff --git a/rnex-core/src/rmc/structures/matchmake.rs b/rnex-core/src/rmc/structures/matchmake.rs index 88deea0..0890365 100644 --- a/rnex-core/src/rmc/structures/matchmake.rs +++ b/rnex-core/src/rmc/structures/matchmake.rs @@ -1,6 +1,5 @@ use cfg_if::cfg_if; use macros::RmcSerialize; -use rnex_core::kerberos::KerberosDateTime; use rnex_core::rmc::structures::variant::Variant; use rnex_core::PID; @@ -32,6 +31,7 @@ pub struct MatchmakeParam { cfg_if! { if #[cfg(feature = "v3-5-0")]{ + use rnex_core::kerberos::KerberosDateTime; #[derive(RmcSerialize, Debug, Clone, Default, PartialEq)] #[rmc_struct(3)] pub struct MatchmakeSession {