mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
Merge pull request #472 from fhartwig/more-rustup
Fixes to build with current rust nightly
This commit is contained in:
commit
4d13085832
1 changed files with 2 additions and 2 deletions
|
@ -195,9 +195,9 @@ impl fmt::Display for Constant {
|
||||||
let (sign, suffix) = match *ity {
|
let (sign, suffix) = match *ity {
|
||||||
LitIntType::SignedIntLit(ref sity, ref sign) =>
|
LitIntType::SignedIntLit(ref sity, ref sign) =>
|
||||||
(if let Sign::Minus = *sign { "-" } else { "" },
|
(if let Sign::Minus = *sign { "-" } else { "" },
|
||||||
ast_util::int_ty_to_string(*sity, None)),
|
ast_util::int_ty_to_string(*sity)),
|
||||||
LitIntType::UnsignedIntLit(ref uity) =>
|
LitIntType::UnsignedIntLit(ref uity) =>
|
||||||
("", ast_util::uint_ty_to_string(*uity, None)),
|
("", ast_util::uint_ty_to_string(*uity)),
|
||||||
LitIntType::UnsuffixedIntLit(ref sign) =>
|
LitIntType::UnsuffixedIntLit(ref sign) =>
|
||||||
(if let Sign::Minus = *sign { "-" } else { "" },
|
(if let Sign::Minus = *sign { "-" } else { "" },
|
||||||
"".into()),
|
"".into()),
|
||||||
|
|
Loading…
Reference in a new issue