From 12266d5e56c80a06dbfb4a78c070b57ac96ac7f5 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 23 Jun 2021 16:49:36 +0200 Subject: [PATCH] Strip leading whitespace from test ouput in `references` --- crates/ide/src/references.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs index c0ede0b881..2d3a0f5981 100644 --- a/crates/ide/src/references.rs +++ b/crates/ide/src/references.rs @@ -1059,7 +1059,7 @@ impl Foo { actual += "\n"; } } - expect.assert_eq(&actual) + expect.assert_eq(actual.trim_start()) } #[test]