Skip to content

Commit

Permalink
Fixed clippy warning: needlless_borrow.
Browse files Browse the repository at this point in the history
  • Loading branch information
mqy authored and stlankes committed Jun 29, 2022
1 parent 50582c1 commit efb1728
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/event/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ where
token: Token,
interests: Interest,
) -> io::Result<()> {
(&mut **self).register(registry, token, interests)
(**self).register(registry, token, interests)
}

fn reregister(
Expand All @@ -130,10 +130,10 @@ where
token: Token,
interests: Interest,
) -> io::Result<()> {
(&mut **self).reregister(registry, token, interests)
(**self).reregister(registry, token, interests)
}

fn deregister(&mut self, registry: &Registry) -> io::Result<()> {
(&mut **self).deregister(registry)
(**self).deregister(registry)
}
}

0 comments on commit efb1728

Please sign in to comment.