Replace explicit lifetimes with anonymous ones where possible
Here the lifetime is only specified because it is needed by type declaration, so an anonymous lifetime can be used instead.
https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes