Skip to content

Commit fc3f452

Browse files
committed
Use unexpected_static_message whenever possible
1 parent f76acf5 commit fc3f452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tokenizer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ impl<'a> TokenStream<'a> {
275275
}
276276

277277
Err(
278-
Error::unexpected_format(
278+
Error::unexpected_static_message(
279279
"unterminated block string value"
280280
)
281281
)
@@ -293,7 +293,7 @@ impl<'a> TokenStream<'a> {
293293
}
294294
'\n' => {
295295
return Err(
296-
Error::unexpected_format(
296+
Error::unexpected_static_message(
297297
"unterminated string value"
298298
)
299299
);
@@ -308,7 +308,7 @@ impl<'a> TokenStream<'a> {
308308
escaped = !escaped && cur_char == '\\';
309309
}
310310
Err(
311-
Error::unexpected_format(
311+
Error::unexpected_static_message(
312312
"unterminated string value"
313313
)
314314
)

0 commit comments

Comments
 (0)