Skip to content

Commit

Permalink
fix elided lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
urisinger committed Dec 26, 2024
1 parent 14dea74 commit 2d81a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pumpkin-protocol/src/client/play/c_command_suggestions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -51,7 +51,7 @@ pub struct CommandSuggestion<'a> {
}

impl<'a> CommandSuggestion<'a> {
pub fn new(suggestion: String, tooltip: Option<TextComponent<'static>>) -> Self {
pub fn new(suggestion: String, tooltip: Option<TextComponent<'a>>) -> Self {
Self {
suggestion,
tooltip,
Expand Down

0 comments on commit 2d81a9e

Please sign in to comment.