Skip to content

Commit a582149

Browse files
committed
eth: fix clippy error
``` error: the following explicit lifetimes could be elided: 'a --> src/eth.rs:366:10 | 366 | impl<'a> Either<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `-D clippy::needless-lifetimes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]` help: elide the lifetimes | 366 - impl<'a> Either<'a> { 366 + impl Either<'_> { ```
1 parent dc55eac commit a582149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ fn get_value(
363363
HashMap(&'a HashMap<String, Value>),
364364
JsonValue(Value),
365365
}
366-
impl<'a> Either<'a> {
366+
impl Either<'_> {
367367
fn get(&self, key: &str) -> Option<&Value> {
368368
match self {
369369
Either::HashMap(map) => map.get(key),

0 commit comments

Comments
 (0)