Remove numeric literals from print_literal and write_literal tests

This commit is contained in:
pro-grammer1 2021-01-17 18:55:59 +00:00
parent ab155b14a2
commit fb2a06dcce
6 changed files with 31 additions and 73 deletions

View file

@ -461,7 +461,7 @@ impl Write {
span_lint(cx, lint, token_expr.span, "literal with an empty format string");
}
idx += 1;
}
},
ExprKind::Assign(lhs, rhs, _) => {
if_chain! {
if let ExprKind::Lit(ref lit) = rhs.kind;