diff options
author | Lukas Wirth <[email protected]> | 2021-06-17 12:59:31 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-06-17 12:59:31 +0100 |
commit | 9353f36516e5b4026ce3a181d578c3a63876a18f (patch) | |
tree | 2909822a4406e05f66a79b180ce1d2327062b5f1 /crates/ide_completion/src/context.rs | |
parent | 2225db2eb48bd8c8fdf399c50652d3f95c851ace (diff) |
Fix incorrect completions in empty braced use statement
Diffstat (limited to 'crates/ide_completion/src/context.rs')
-rw-r--r-- | crates/ide_completion/src/context.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ide_completion/src/context.rs b/crates/ide_completion/src/context.rs index c3076f608..240cac1de 100644 --- a/crates/ide_completion/src/context.rs +++ b/crates/ide_completion/src/context.rs | |||
@@ -264,10 +264,6 @@ impl<'a> CompletionContext<'a> { | |||
264 | } | 264 | } |
265 | } | 265 | } |
266 | 266 | ||
267 | pub(crate) fn expects_new_use_tree(&self) -> bool { | ||
268 | matches!(self.completion_location, Some(ImmediateLocation::Use)) | ||
269 | } | ||
270 | |||
271 | pub(crate) fn expects_non_trait_assoc_item(&self) -> bool { | 267 | pub(crate) fn expects_non_trait_assoc_item(&self) -> bool { |
272 | matches!(self.completion_location, Some(ImmediateLocation::Impl)) | 268 | matches!(self.completion_location, Some(ImmediateLocation::Impl)) |
273 | } | 269 | } |