From 2d81a9efe8537ff42b4852ab9ada94609315c687 Mon Sep 17 00:00:00 2001 From: urisinger Date: Fri, 27 Dec 2024 00:02:04 +0200 Subject: [PATCH] fix elided lifetimes --- pumpkin-protocol/src/client/play/c_command_suggestions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pumpkin-protocol/src/client/play/c_command_suggestions.rs b/pumpkin-protocol/src/client/play/c_command_suggestions.rs index eb50314a..c137b9ad 100644 --- a/pumpkin-protocol/src/client/play/c_command_suggestions.rs +++ b/pumpkin-protocol/src/client/play/c_command_suggestions.rs @@ -28,7 +28,7 @@ impl<'a> CCommandSuggestions<'a> { } } -impl<'a> ClientPacket for CCommandSuggestions<'a> { +impl ClientPacket for CCommandSuggestions<'_> { fn write(&self, bytebuf: &mut impl BufMut) { bytebuf.put_var_int(&self.id); bytebuf.put_var_int(&self.start); @@ -51,7 +51,7 @@ pub struct CommandSuggestion<'a> { } impl<'a> CommandSuggestion<'a> { - pub fn new(suggestion: String, tooltip: Option>) -> Self { + pub fn new(suggestion: String, tooltip: Option>) -> Self { Self { suggestion, tooltip,