Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Oct 5, 2024
1 parent 8fe20fc commit ad67b7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/topic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl TopicFilter {
}
}

impl<'a> TryFrom<&'a [TopicFilterLevel]> for TopicFilter {
impl TryFrom<&[TopicFilterLevel]> for TopicFilter {
type Error = TopicFilterError;

fn try_from(s: &[TopicFilterLevel]) -> Result<Self, Self::Error> {
Expand Down Expand Up @@ -155,7 +155,7 @@ impl MatchLevel for TopicFilterLevel {
}
}

impl<'a> MatchLevel for &'a TopicFilterLevel {
impl MatchLevel for &TopicFilterLevel {
fn match_level(&self, level: &TopicFilterLevel, index: usize) -> bool {
match_level_impl(self, level, index)
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl Encode for (ByteString, ByteString) {
}
}

impl<'a> Encode for &'a [u8] {
impl Encode for &[u8] {
fn encoded_size(&self) -> usize {
2 + self.len()
}
Expand Down

0 comments on commit ad67b7d

Please sign in to comment.