Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/completions/attribute.rs')
| -rw-r--r-- | crates/ide-completion/src/completions/attribute.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/ide-completion/src/completions/attribute.rs b/crates/ide-completion/src/completions/attribute.rs index 9155caa2e0..8f7c3b5070 100644 --- a/crates/ide-completion/src/completions/attribute.rs +++ b/crates/ide-completion/src/completions/attribute.rs @@ -44,9 +44,7 @@ pub(crate) fn complete_known_attribute_input( None => None, }; let (path, tt) = name_ref.zip(attribute.token_tree())?; - if tt.l_paren_token().is_none() { - return None; - } + tt.l_paren_token()?; match path.text().as_str() { "repr" => repr::complete_repr(acc, ctx, tt), |