From a9623f3165f87124de836e81e238118e557bb9e9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 18 Jun 2021 23:38:19 +0300 Subject: minor: use minicore --- crates/ide_completion/src/completions/postfix.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'crates/ide_completion') diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide_completion/src/completions/postfix.rs index c11deebcb..4e20ec003 100644 --- a/crates/ide_completion/src/completions/postfix.rs +++ b/crates/ide_completion/src/completions/postfix.rs @@ -509,18 +509,15 @@ fn main() { check_edit( "ifl", r#" -enum Option { Some(T), None } - +//- minicore: option fn main() { - let bar = &Option::Some(true); + let bar = &Some(true); bar.$0 } "#, r#" -enum Option { Some(T), None } - fn main() { - let bar = &Option::Some(true); + let bar = &Some(true); if let Some($1) = bar { $0 } -- cgit v1.2.3