diff options
author | Jeremy Kolb <[email protected]> | 2020-07-19 19:26:24 +0100 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2020-07-19 19:26:24 +0100 |
commit | 17f4d27f1285a76961b2e3957dc192de8e4f179f (patch) | |
tree | 21508e1ebdc068b74f7bb12006bd66495916f84b /crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs | |
parent | 09fab42d39e69c94a4a4b7f5ae5ad10005290bf2 (diff) |
Minor perf tweaks per clippy
Diffstat (limited to 'crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs')
-rw-r--r-- | crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs b/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs index dfd314abf..3d51faa54 100644 --- a/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs +++ b/crates/ra_assists/src/handlers/replace_qualified_name_with_use.rs | |||
@@ -106,7 +106,7 @@ fn maybe_replace_path( | |||
106 | path: ast::Path, | 106 | path: ast::Path, |
107 | target: ast::Path, | 107 | target: ast::Path, |
108 | ) -> Option<()> { | 108 | ) -> Option<()> { |
109 | if !path_eq(path.clone(), target.clone()) { | 109 | if !path_eq(path.clone(), target) { |
110 | return None; | 110 | return None; |
111 | } | 111 | } |
112 | 112 | ||