diff options
Diffstat (limited to 'azalea-protocol/src')
| -rw-r--r-- | azalea-protocol/src/lib.rs | 2 | ||||
| -rwxr-xr-x | azalea-protocol/src/read.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/lib.rs b/azalea-protocol/src/lib.rs index fb271433..be706ebe 100644 --- a/azalea-protocol/src/lib.rs +++ b/azalea-protocol/src/lib.rs @@ -41,7 +41,7 @@ pub struct ServerAddress { pub port: u16, } -impl TryFrom<&'_ str> for ServerAddress { +impl TryFrom<&str> for ServerAddress { type Error = String; /// Convert a Minecraft server address (host:port, the port is optional) to diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 3e333e52..8569ca73 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -350,7 +350,7 @@ where .map_err(ReadPacketError::from)?; } - if log::log_enabled!(log::Level::Trace) { + if tracing::enabled!(tracing::Level::TRACE) { const DO_NOT_CUT_OFF_PACKET_LOGS: bool = false; let buf_string: String = { |
