Skip to content

Commit

Permalink
registry: remove needless lifetimes
Browse files Browse the repository at this point in the history
This quiets a Clippy warning.

Signed-off-by: brian m. carlson <[email protected]>
  • Loading branch information
bk2204 committed Sep 26, 2023
1 parent 0d74f16 commit bb12abf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/codec/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ impl CodecRegistry {
self.map.insert(k, f);
}

pub fn iter<'a>(&'a self) -> Iter<'a> {
pub fn iter(&self) -> Iter<'_> {
self.map.iter()
}

pub fn create<'a>(
pub fn create(
&self,
name: &'a str,
name: &str,
r: Box<io::BufRead>,
s: CodecSettings,
) -> Result<Box<io::BufRead>, Error> {
Expand Down

0 comments on commit bb12abf

Please sign in to comment.