Merge pull request #25 from SamuelMarks/rustfmt

[*.rs] rustfmt
This commit is contained in:
David Tolnay 2020-06-28 19:09:13 -07:00 committed by GitHub
commit cdcf6374b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -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()),

View File

@ -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")]

View File

@ -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"),