Skip to content

Commit fa3e3cb

Browse files
committed
Fix #3145 by removing assert
1 parent 63a46b1 commit fa3e3cb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/write.rs

-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &ThinTokenStream, is_write: bool) -
284284
let mut idx = 0;
285285
loop {
286286
if !parser.eat(&token::Comma) {
287-
assert!(parser.eat(&token::Eof));
288287
return (Some(fmtstr), expr);
289288
}
290289
let token_expr = match parser.parse_expr().map_err(|mut err| err.cancel()) {

0 commit comments

Comments
 (0)