From fdb378f8598cb745be2d884c99593adf4f7393e9 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 19 Apr 2022 20:49:30 -0400 Subject: [PATCH] Drop extraneous space before newline --- reporting/src/error/parse.rs | 14 +++++++------- reporting/tests/test_reporting.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/reporting/src/error/parse.rs b/reporting/src/error/parse.rs index c46a03aea1..b03c5d0826 100644 --- a/reporting/src/error/parse.rs +++ b/reporting/src/error/parse.rs @@ -3207,7 +3207,7 @@ fn to_generates_with_report<'a>( alloc.concat([ alloc.reflow("I am expecting the "), alloc.keyword("with"), - alloc.reflow(" keyword next, like "), + alloc.reflow(" keyword next, like"), ]), alloc .parser_suggestion("with [ after, map ]") @@ -3273,7 +3273,7 @@ fn to_provides_report<'a>( alloc.concat([ alloc.reflow("I am expecting the "), alloc.keyword("provides"), - alloc.reflow(" keyword next, like "), + alloc.reflow(" keyword next, like"), ]), alloc .parser_suggestion("provides [ Animal, default, tame ]") @@ -3338,7 +3338,7 @@ fn to_exposes_report<'a>( alloc.concat([ alloc.reflow("I am expecting the "), alloc.keyword("exposes"), - alloc.reflow(" keyword next, like "), + alloc.reflow(" keyword next, like"), ]), alloc .parser_suggestion("exposes [ Animal, default, tame ]") @@ -3402,7 +3402,7 @@ fn to_imports_report<'a>( alloc.concat([ alloc.reflow("I am expecting the "), alloc.keyword("imports"), - alloc.reflow(" keyword next, like "), + alloc.reflow(" keyword next, like"), ]), alloc .parser_suggestion("imports [ Animal, default, tame ]") @@ -3467,7 +3467,7 @@ fn to_requires_report<'a>( alloc.concat([ alloc.reflow("I am expecting the "), alloc.keyword("requires"), - alloc.reflow(" keyword next, like "), + alloc.reflow(" keyword next, like"), ]), alloc .parser_suggestion("requires { main : Task I64 Str }") @@ -3494,7 +3494,7 @@ fn to_requires_report<'a>( alloc.concat([ alloc.reflow("I am expecting the "), alloc.keyword("requires"), - alloc.reflow(" keyword next, like "), + alloc.reflow(" keyword next, like"), ]), alloc .parser_suggestion("requires { main : Task I64 Str }") @@ -3591,7 +3591,7 @@ fn to_packages_report<'a>( alloc.concat([ alloc.reflow("I am expecting the "), alloc.keyword("packages"), - alloc.reflow(" keyword next, like "), + alloc.reflow(" keyword next, like"), ]), alloc.parser_suggestion("packages {}").indent(4), ]); diff --git a/reporting/tests/test_reporting.rs b/reporting/tests/test_reporting.rs index 30f9c4bc1e..5c00c48c90 100644 --- a/reporting/tests/test_reporting.rs +++ b/reporting/tests/test_reporting.rs @@ -6393,7 +6393,7 @@ I need all branches in an `if` to have the same type! 2│ exposes [ main, Foo ] ^ - I am expecting the `imports` keyword next, like + I am expecting the `imports` keyword next, like imports [ Animal, default, tame ] "#