aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/network
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2021-06-13 20:14:59 +0200
committerEskil Queseth <eskilq@kth.se>2021-06-13 20:14:59 +0200
commit9bc2bdc5dca1399fa75d20a18f1a2dfb8ab4e325 (patch)
tree0adef79527ab52509e68f87db9510fb708259669 /mumd/src/network
parent9f8f46a9f91840763e10fe1b603663e346970b79 (diff)
downloadmum-9bc2bdc5dca1399fa75d20a18f1a2dfb8ab4e325.tar.gz
add single_use_lifetimes lint
Diffstat (limited to 'mumd/src/network')
-rw-r--r--mumd/src/network/tcp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/network/tcp.rs b/mumd/src/network/tcp.rs
index 1f226d8..a76814c 100644
--- a/mumd/src/network/tcp.rs
+++ b/mumd/src/network/tcp.rs
@@ -64,7 +64,7 @@ pub enum TcpEventData<'a> {
TextMessage(&'a msgs::TextMessage),
}
-impl<'a> From<&TcpEventData<'a>> for TcpEvent {
+impl From<&TcpEventData<'_>> for TcpEvent {
fn from(t: &TcpEventData<'_>) -> Self {
match t {
TcpEventData::Connected(_) => TcpEvent::Connected,
@@ -111,7 +111,7 @@ impl TcpEventQueue {
/// Fires all callbacks related to a specific TCP event and removes them from the event queue.
/// Also calls all event subscribers, but keeps them in the queue
- pub fn resolve<'a>(&self, data: TcpEventData<'a>) {
+ pub fn resolve(&self, data: TcpEventData<'_>) {
if let Some(vec) = self
.callbacks
.write()