diff options
author | Lukas Wirth <[email protected]> | 2021-05-29 13:02:06 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-05-29 13:02:06 +0100 |
commit | c9f0f47bbba3d02a6389af14aaf1c3d1d088d191 (patch) | |
tree | c9c05d051033087b008e4058ff212eeadab3d1de /crates/ide_completion/src/completions/attribute/derive.rs | |
parent | 411eee76147b0730e1eb5afe84d13558de2ee082 (diff) |
simplify
Diffstat (limited to 'crates/ide_completion/src/completions/attribute/derive.rs')
-rw-r--r-- | crates/ide_completion/src/completions/attribute/derive.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_completion/src/completions/attribute/derive.rs b/crates/ide_completion/src/completions/attribute/derive.rs index c213e4792..7b0a778a2 100644 --- a/crates/ide_completion/src/completions/attribute/derive.rs +++ b/crates/ide_completion/src/completions/attribute/derive.rs | |||
@@ -14,7 +14,7 @@ pub(super) fn complete_derive( | |||
14 | ctx: &CompletionContext, | 14 | ctx: &CompletionContext, |
15 | derive_input: ast::TokenTree, | 15 | derive_input: ast::TokenTree, |
16 | ) { | 16 | ) { |
17 | if let Ok(existing_derives) = super::parse_comma_sep_input(derive_input) { | 17 | if let Some(existing_derives) = super::parse_comma_sep_input(derive_input) { |
18 | for derive_completion in DEFAULT_DERIVE_COMPLETIONS | 18 | for derive_completion in DEFAULT_DERIVE_COMPLETIONS |
19 | .iter() | 19 | .iter() |
20 | .filter(|completion| !existing_derives.contains(completion.label)) | 20 | .filter(|completion| !existing_derives.contains(completion.label)) |