[*.rs] rustfmt

This commit is contained in:
Samuel Marks 2020-06-29 12:00:26 +10:00
parent 4911818fcf
commit 8d64f674a0
No known key found for this signature in database
GPG Key ID: 43FD8EDE42E1A799
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_half(<u32>::max_value() as u64),
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(const_static_lifetime, transmute_ptr_to_ptr),
allow(const_static_lifetime, transmute_ptr_to_ptr)
)]
#[cfg(feature = "i128")]

View File

@ -1,7 +1,4 @@
#![cfg_attr(
feature = "cargo-clippy",
allow(cast_lossless, string_lit_as_bytes)
)]
#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless, string_lit_as_bytes))]
#![allow(non_snake_case)]
extern crate itoa;
@ -32,7 +29,7 @@ macro_rules! test {
}
}
test!{
test! {
test_u64_0(0u64, "0"),
test_u64_half(<u32>::max_value() as u64, "4294967295"),
test_u64_max(<u64>::max_value(), "18446744073709551615"),