diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2022-01-11 14:31:35 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2022-01-22 20:35:32 -0500 |
| commit | 9e9110e4f3fd8d982dbde873b0c5168b8a3968ed (patch) | |
| tree | 060de539571b72d5b8cd8e415b5b2387d2826176 /clippy_lints/src/implicit_hasher.rs | |
| parent | 15c068ed0f4d231beabb22975cbca7fd33996ce5 (diff) | |
Remove final reference on fields and method calls in `needless_borrow`
Diffstat (limited to 'clippy_lints/src/implicit_hasher.rs')
| -rw-r--r-- | clippy_lints/src/implicit_hasher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/implicit_hasher.rs b/clippy_lints/src/implicit_hasher.rs index 6358228dd47..2818b3e006a 100644 --- a/clippy_lints/src/implicit_hasher.rs +++ b/clippy_lints/src/implicit_hasher.rs @@ -179,7 +179,7 @@ impl<'tcx> LateLintPass<'tcx> for ImplicitHasher { ) .and_then(|snip| { let i = snip.find("fn")?; - Some(item.span.lo() + BytePos((i + (&snip[i..]).find('(')?) as u32)) + Some(item.span.lo() + BytePos((i + snip[i..].find('(')?) as u32)) }) .expect("failed to create span for type parameters"); Span::new(pos, pos, item.span.ctxt(), item.span.parent()) |
