[skip ci] chore: get rid of warnings
This commit is contained in:
parent
f51fc3a1db
commit
460d785b5e
4 changed files with 10 additions and 6 deletions
|
|
@ -16,7 +16,6 @@ use rnex_core::{
|
|||
};
|
||||
use std::{
|
||||
env::{self, VarError},
|
||||
error,
|
||||
net::{AddrParseError, Ipv4Addr, SocketAddr, SocketAddrV4},
|
||||
ops::Deref,
|
||||
panic,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue