aboutsummaryrefslogtreecommitdiff
path: root/src/reader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.rs')
-rw-r--r--src/reader.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/reader.rs b/src/reader.rs
index 5dcbd87..e6a00e1 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -13,7 +13,6 @@ use mcproto_rs::{Deserialize, Deserialized};
use std::backtrace::Backtrace;
use std::io;
use thiserror::Error;
-
#[cfg(any(feature = "futures-io", feature = "tokio-io"))]
use async_trait::async_trait;
@@ -114,7 +113,7 @@ pub trait CraftSyncReader {
P: RawPacket<'a>;
#[cfg(feature = "gat")]
- fn read_raw_packet<'a, P>(&'a mut self) -> ReadResult<P::RawPacket<'a>>
+ fn read_raw_packet<P>(&mut self) -> ReadResult<P::RawPacket<'_>>
where
P: PacketKind;
}
@@ -191,11 +190,11 @@ where
}
#[cfg(feature = "gat")]
- fn read_raw_packet<'a, P>(&'a mut self) -> ReadResult<P::RawPacket<'a>>
+ fn read_raw_packet<P>(&mut self) -> ReadResult<P::RawPacket<'_>>
where
P: PacketKind
{
- self.read_raw_packet_inner::<P::RawPacket<'a>>()
+ self.read_raw_packet_inner::<P::RawPacket<'_>>()
}
}