mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
Merge pull request #561 from fhartwig/deprecation-fix
Fix deprecation warning on latest nightly
This commit is contained in:
commit
a0496f08ca
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#![feature(plugin_registrar, box_syntax)]
|
||||
#![feature(rustc_private, collections)]
|
||||
#![feature(num_bits_bytes, iter_arith)]
|
||||
#![feature(iter_arith)]
|
||||
#![feature(custom_attribute)]
|
||||
#![allow(unknown_lints)]
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ fn int_ty_to_nbits(typ: &ty::TyS) -> usize {
|
|||
};
|
||||
// n == 4 is the usize/isize case
|
||||
if n == 4 {
|
||||
::std::usize::BITS
|
||||
::std::mem::size_of::<usize>() * 8
|
||||
} else {
|
||||
n
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue