Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Philipp Krones <hello@philkrones.com>
  • Loading branch information
tesuji and flip1995 committed Sep 6, 2019
1 parent 269d26c commit 79bbf39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/misc_early.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ impl MiscEarlyLints {
let lit_snip = match snippet_opt(cx, lit.span) {
Some(snip) => {
// We test if first character in snippet is a number, because the snippet could be an expansion
// from proc-macro like `line!()` or `#[wasm_bindgen]`.
// from a built-in macro like `line!()` or a proc-macro like `#[wasm_bindgen]`.
// See <https://github.com/rust-lang/rust-clippy/issues/4507> for a regression.
// FIXME: Find a better way to detect those cases.
if !snip.chars().next().map_or(false, |c| c.is_digit(10)) {
Expand Down

0 comments on commit 79bbf39

Please sign in to comment.