Browse Source

protocol: use attr macro_use for crate log

ipv6
Denis Drakhnia 11 months ago
parent
commit
a5dacb1b2e
  1. 1
      protocol/src/filter.rs
  2. 3
      protocol/src/lib.rs
  3. 1
      protocol/src/server.rs

1
protocol/src/filter.rs

@ -34,7 +34,6 @@ use std::net::SocketAddrV4;
use std::str::FromStr; use std::str::FromStr;
use bitflags::bitflags; use bitflags::bitflags;
use log::debug;
use crate::cursor::{Cursor, GetKeyValue, PutKeyValue}; use crate::cursor::{Cursor, GetKeyValue, PutKeyValue};
use crate::server::{ServerAdd, ServerFlags, ServerType}; use crate::server::{ServerAdd, ServerFlags, ServerType};

3
protocol/src/lib.rs

@ -5,6 +5,9 @@
//! Xash3D protocol between clients, servers and masters. //! Xash3D protocol between clients, servers and masters.
#[macro_use]
extern crate log;
mod cursor; mod cursor;
mod server_info; mod server_info;

1
protocol/src/server.rs

@ -6,7 +6,6 @@
use std::fmt; use std::fmt;
use bitflags::bitflags; use bitflags::bitflags;
use log::debug;
use super::cursor::{Cursor, CursorMut, GetKeyValue, PutKeyValue}; use super::cursor::{Cursor, CursorMut, GetKeyValue, PutKeyValue};
use super::filter::Version; use super::filter::Version;

Loading…
Cancel
Save