diff options
author | Adolfo OchagavĂa <[email protected]> | 2018-11-07 10:41:42 +0000 |
---|---|---|
committer | Adolfo OchagavĂa <[email protected]> | 2018-11-07 10:41:42 +0000 |
commit | e37ba706ccc435346c35042c2b6c4b483494268b (patch) | |
tree | 88ff5304460cc8c8a4614a4bf240d4253126d6c7 /crates/ra_syntax/src/yellow | |
parent | 94796e6447c8af9d7444164c2175ca5dae4a563e (diff) |
cargo format
Diffstat (limited to 'crates/ra_syntax/src/yellow')
-rw-r--r-- | crates/ra_syntax/src/yellow/syntax_error.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/yellow/syntax_error.rs b/crates/ra_syntax/src/yellow/syntax_error.rs index e2e660975..c524adf39 100644 --- a/crates/ra_syntax/src/yellow/syntax_error.rs +++ b/crates/ra_syntax/src/yellow/syntax_error.rs | |||
@@ -98,12 +98,16 @@ impl fmt::Display for SyntaxErrorKind { | |||
98 | UnclosedChar => write!(f, "Unclosed char literal"), | 98 | UnclosedChar => write!(f, "Unclosed char literal"), |
99 | LongChar => write!(f, "Char literal should be one character long"), | 99 | LongChar => write!(f, "Char literal should be one character long"), |
100 | TooShortAsciiCodeEscape => write!(f, "Escape sequence should have two digits"), | 100 | TooShortAsciiCodeEscape => write!(f, "Escape sequence should have two digits"), |
101 | AsciiCodeEscapeOutOfRange => write!(f, "Escape sequence should be between \\x00 and \\x7F"), | 101 | AsciiCodeEscapeOutOfRange => { |
102 | write!(f, "Escape sequence should be between \\x00 and \\x7F") | ||
103 | } | ||
102 | MalformedAsciiCodeEscape => write!(f, "Escape sequence should be a hexadecimal number"), | 104 | MalformedAsciiCodeEscape => write!(f, "Escape sequence should be a hexadecimal number"), |
103 | UnclosedUnicodeEscape => write!(f, "Missing `}}`"), | 105 | UnclosedUnicodeEscape => write!(f, "Missing `}}`"), |
104 | MalformedUnicodeEscape => write!(f, "Malformed unicode escape sequence"), | 106 | MalformedUnicodeEscape => write!(f, "Malformed unicode escape sequence"), |
105 | EmptyUnicodeEcape => write!(f, "Empty unicode escape sequence"), | 107 | EmptyUnicodeEcape => write!(f, "Empty unicode escape sequence"), |
106 | OverlongUnicodeEscape => write!(f, "Unicode escape sequence should have at most 6 digits"), | 108 | OverlongUnicodeEscape => { |
109 | write!(f, "Unicode escape sequence should have at most 6 digits") | ||
110 | } | ||
107 | UnicodeEscapeOutOfRange => write!(f, "Unicode escape code should be at most 0x10FFFF"), | 111 | UnicodeEscapeOutOfRange => write!(f, "Unicode escape code should be at most 0x10FFFF"), |
108 | ParseError(msg) => write!(f, "{}", msg.0), | 112 | ParseError(msg) => write!(f, "{}", msg.0), |
109 | } | 113 | } |