[*.rs] rustfmt
This commit is contained in:
parent
4911818fcf
commit
8d64f674a0
|
@ -68,7 +68,7 @@ macro_rules! benches {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
benches!{
|
benches! {
|
||||||
bench_u64_0(0u64),
|
bench_u64_0(0u64),
|
||||||
bench_u64_half(<u32>::max_value() as u64),
|
bench_u64_half(<u32>::max_value() as u64),
|
||||||
bench_u64_max(<u64>::max_value()),
|
bench_u64_max(<u64>::max_value()),
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
|
#![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
feature = "cargo-clippy",
|
feature = "cargo-clippy",
|
||||||
allow(const_static_lifetime, transmute_ptr_to_ptr),
|
allow(const_static_lifetime, transmute_ptr_to_ptr)
|
||||||
)]
|
)]
|
||||||
|
|
||||||
#[cfg(feature = "i128")]
|
#[cfg(feature = "i128")]
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
#![cfg_attr(
|
#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless, string_lit_as_bytes))]
|
||||||
feature = "cargo-clippy",
|
|
||||||
allow(cast_lossless, string_lit_as_bytes)
|
|
||||||
)]
|
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
extern crate itoa;
|
extern crate itoa;
|
||||||
|
@ -32,7 +29,7 @@ macro_rules! test {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test!{
|
test! {
|
||||||
test_u64_0(0u64, "0"),
|
test_u64_0(0u64, "0"),
|
||||||
test_u64_half(<u32>::max_value() as u64, "4294967295"),
|
test_u64_half(<u32>::max_value() as u64, "4294967295"),
|
||||||
test_u64_max(<u64>::max_value(), "18446744073709551615"),
|
test_u64_max(<u64>::max_value(), "18446744073709551615"),
|
||||||
|
|
Loading…
Reference in New Issue