Skip to content

Commit 578c228

Browse files
committed
run cargo fmt on missed files
It seems these files were missed by CI. Command to run cargo fmt on absolutely *everything* (and possibly too much) find tests -name "*.rs" -print0 | xargs -0 cargo fmt --
1 parent a5a9f7d commit 578c228

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

fuzz/fuzz_targets/fuzz_test.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,7 @@ fn generate_test_arg() -> String {
146146
let random_str = generate_random_string(rng.random_range(1..=10));
147147
let random_str2 = generate_random_string(rng.random_range(1..=10));
148148

149-
arg.push_str(&format!(
150-
"{random_str} {} {random_str2}",
151-
test_arg.arg,
152-
));
149+
arg.push_str(&format!("{random_str} {} {random_str2}", test_arg.arg,));
153150
} else if test_arg.arg_type == ArgType::STRING {
154151
let random_str = generate_random_string(rng.random_range(1..=10));
155152
arg.push_str(&format!("{} {random_str}", test_arg.arg));

tests/benches/factor/benches/table.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// spell-checker:ignore funcs
77

88
use array_init::array_init;
9-
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
9+
use criterion::{BenchmarkId, Criterion, Throughput, criterion_group, criterion_main};
1010

1111
fn table(c: &mut Criterion) {
1212
#[cfg(target_os = "linux")]
@@ -54,7 +54,9 @@ fn check_personality() {
5454
let personality = u64::from_str_radix(&p_string, 16)
5555
.unwrap_or_else(|_| panic!("Expected a hex value for personality, got '{p_string:?}'"));
5656
if personality & ADDR_NO_RANDOMIZE == 0 {
57-
eprintln!("WARNING: Benchmarking with ASLR enabled (personality is {personality:x}), results might not be reproducible.");
57+
eprintln!(
58+
"WARNING: Benchmarking with ASLR enabled (personality is {personality:x}), results might not be reproducible."
59+
);
5860
}
5961
}
6062

0 commit comments

Comments
 (0)