Unnamed repository; edit this file 'description' to name the repository.
change test highlighting dedent level
| -rw-r--r-- | crates/ide-completion/src/completions/postfix.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ide-completion/src/completions/postfix.rs b/crates/ide-completion/src/completions/postfix.rs index 3f4911e2e9..fbae0f858c 100644 --- a/crates/ide-completion/src/completions/postfix.rs +++ b/crates/ide-completion/src/completions/postfix.rs @@ -1658,7 +1658,9 @@ fn foo(x: Option<i32>, y: Option<i32>) { let _f = || { x .and(y) - .map(|it| it+2) + .map(|it| { + it+2 + }) .$0 }; } @@ -1668,7 +1670,9 @@ fn foo(x: Option<i32>, y: Option<i32>) { let _f = || { let $0 = x .and(y) -.map(|it| it+2); +.map(|it| { + it+2 +}); }; } "#, |