From a5dacb1b2ec729a187b60246e60aada5d250020f Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Sun, 14 Jan 2024 12:36:19 +0200 Subject: [PATCH] protocol: use attr macro_use for crate log --- protocol/src/filter.rs | 1 - protocol/src/lib.rs | 3 +++ protocol/src/server.rs | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/protocol/src/filter.rs b/protocol/src/filter.rs index 6d50ece..9b952e0 100644 --- a/protocol/src/filter.rs +++ b/protocol/src/filter.rs @@ -34,7 +34,6 @@ use std::net::SocketAddrV4; use std::str::FromStr; use bitflags::bitflags; -use log::debug; use crate::cursor::{Cursor, GetKeyValue, PutKeyValue}; use crate::server::{ServerAdd, ServerFlags, ServerType}; diff --git a/protocol/src/lib.rs b/protocol/src/lib.rs index 577eb23..aae2605 100644 --- a/protocol/src/lib.rs +++ b/protocol/src/lib.rs @@ -5,6 +5,9 @@ //! Xash3D protocol between clients, servers and masters. +#[macro_use] +extern crate log; + mod cursor; mod server_info; diff --git a/protocol/src/server.rs b/protocol/src/server.rs index 52d9be6..13634a9 100644 --- a/protocol/src/server.rs +++ b/protocol/src/server.rs @@ -6,7 +6,6 @@ use std::fmt; use bitflags::bitflags; -use log::debug; use super::cursor::{Cursor, CursorMut, GetKeyValue, PutKeyValue}; use super::filter::Version;