Skip to content

Commit

Permalink
clippy elided lifetime fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousBit0111 committed Nov 1, 2024
1 parent e79acde commit 23bc277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/net/crates/codec/src/encode/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl NetEncode for String {
}
}

impl<'a> NetEncode for &'a str {
impl NetEncode for &str {
fn encode<W: Write>(&self, writer: &mut W, _: &NetEncodeOpts) -> NetEncodeResult<()> {
let len: VarInt = VarInt::new(self.len() as i32);
len.encode(writer, &NetEncodeOpts::None)?;
Expand Down

0 comments on commit 23bc277

Please sign in to comment.