Skip to content

Commit

Permalink
Elide lifetimes thanks to clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexicality committed Dec 22, 2024
1 parent 775ea53 commit 4cf1d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse/link_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ fn parse_ack(_input: &mut &Bytes) -> MBResult<Packet> {
Ok(Packet::Ack)
}

impl<'a> Packet {
pub fn parse(input: &mut &'a Bytes) -> MBResult<Packet> {
impl Packet {
pub fn parse(input: &mut &Bytes) -> MBResult<Packet> {
alt((
preceded(
LONG_FRAME_HEADER.void(),
Expand Down

0 comments on commit 4cf1d0d

Please sign in to comment.