diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-02 09:07:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-02 09:07:42 +0100 |
commit | e535489f03901ab94a89dd2de67f35714f0c3cfc (patch) | |
tree | f3e70f9a42b29d3d01448cc298dc61a0bce04294 /crates/assists/src/handlers/extract_struct_from_enum_variant.rs | |
parent | c3bf7659b13a14541ddcff9c243c79b45bfd6829 (diff) | |
parent | 82d6cfd495c7e0f230ce1ac61e7a4297fa22f02f (diff) |
Merge #6104
6104: Minor clippy performance suggestions r=matklad a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates/assists/src/handlers/extract_struct_from_enum_variant.rs')
-rw-r--r-- | crates/assists/src/handlers/extract_struct_from_enum_variant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/assists/src/handlers/extract_struct_from_enum_variant.rs index d1eadaa99..f5f03ef36 100644 --- a/crates/assists/src/handlers/extract_struct_from_enum_variant.rs +++ b/crates/assists/src/handlers/extract_struct_from_enum_variant.rs | |||
@@ -91,7 +91,7 @@ fn existing_struct_def(db: &RootDatabase, variant_name: &str, variant: &EnumVari | |||
91 | .module(db) | 91 | .module(db) |
92 | .scope(db, None) | 92 | .scope(db, None) |
93 | .into_iter() | 93 | .into_iter() |
94 | .any(|(name, _)| name.to_string() == variant_name.to_string()) | 94 | .any(|(name, _)| name.to_string() == variant_name) |
95 | } | 95 | } |
96 | 96 | ||
97 | #[allow(dead_code)] | 97 | #[allow(dead_code)] |