From adb3c56ff0734e01c34c64737e338eecc3541578 Mon Sep 17 00:00:00 2001 From: Wesley Norris Date: Sat, 3 Oct 2020 14:17:21 -0400 Subject: Trim all trailing whitespace in onEnter Fixes #5848 --- crates/ide/src/typing/on_enter.rs | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'crates/ide/src/typing/on_enter.rs') diff --git a/crates/ide/src/typing/on_enter.rs b/crates/ide/src/typing/on_enter.rs index a0dc4b9df..98adef1d6 100644 --- a/crates/ide/src/typing/on_enter.rs +++ b/crates/ide/src/typing/on_enter.rs @@ -51,12 +51,12 @@ pub(crate) fn on_enter(db: &RootDatabase, position: FilePosition) -> Option Option + let x = 1 + 1; +} +", + " +fn main() { + // Fix me + // $0 + let x = 1 + 1; +} +", + ); + } } -- cgit v1.2.3