Skip to content

Commit

Permalink
Code formatting/cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phansch committed Apr 10, 2019
1 parent 0eb7596 commit 1fd2451
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clippy_lints/src/literal_representation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,10 @@ impl LiteralRepresentation {
return
}
let hex = format!("{:#X}", val);
let digit_info = DigitInfo::new(&hex[..], false);
let digit_info = DigitInfo::new(&hex, false);
let _ = Self::do_lint(digit_info.digits).map_err(|warning_type| {
warning_type.display(&digit_info.grouping_hint(), cx, lit.span)
});
}
else {
return
};
}
}
Expand Down

0 comments on commit 1fd2451

Please sign in to comment.