From cf9a66242bd2a1e8d634154e1a9eb1e908937ea5 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sat, 17 Oct 2026 16:11:32 +0200 Subject: [PATCH 1/2] refactor: core instead of std --- benches/bench.rs | 2 +- benches/callgrind.rs | 2 +- fuzz/fuzz_targets/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benches/bench.rs b/benches/bench.rs index 2d11e03e..4ae241c3 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -6,7 +6,7 @@ use { criterion_main }, smallvec::SmallVec, - std::{ + core::{ hint::black_box, time::Duration } diff --git a/benches/callgrind.rs b/benches/callgrind.rs index 9f3c605a..b14cbd58 100644 --- a/benches/callgrind.rs +++ b/benches/callgrind.rs @@ -5,7 +5,7 @@ use { main }, smallvec::SmallVec, - std::hint::black_box + core::hint::black_box }; const INLINE_CAP: usize = 16; diff --git a/fuzz/fuzz_targets/main.rs b/fuzz/fuzz_targets/main.rs index 1ca02359..4a779c54 100644 --- a/fuzz/fuzz_targets/main.rs +++ b/fuzz/fuzz_targets/main.rs @@ -6,7 +6,7 @@ use { arbitrary::Arbitrary, libfuzzer_sys::fuzz_target, smallvec::SmallVec, - std::fmt::Debug + core::fmt::Debug }; // Upper bound on the harness's test vectors's capacity. From 7ff84d110cbabc906697dc9472bdeccdae132f86 Mon Sep 17 00:00:00 2001 From: Alejandro Vaz Date: Sat, 17 Oct 2026 16:15:14 +0200 Subject: [PATCH 2/2] style: formatting --- benches/bench.rs | 10 +++++----- benches/callgrind.rs | 4 ++-- fuzz/fuzz_targets/main.rs | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/benches/bench.rs b/benches/bench.rs index 4ae241c3..15cd319e 100644 --- a/benches/bench.rs +++ b/benches/bench.rs @@ -1,15 +1,15 @@ use { + core::{ + hint::black_box, + time::Duration + }, criterion::{ Bencher, Criterion, criterion_group, criterion_main }, - smallvec::SmallVec, - core::{ - hint::black_box, - time::Duration - } + smallvec::SmallVec }; const VEC_SIZE: usize = 16; diff --git a/benches/callgrind.rs b/benches/callgrind.rs index b14cbd58..4347c493 100644 --- a/benches/callgrind.rs +++ b/benches/callgrind.rs @@ -1,11 +1,11 @@ use { + core::hint::black_box, iai_callgrind::{ library_benchmark, library_benchmark_group, main }, - smallvec::SmallVec, - core::hint::black_box + smallvec::SmallVec }; const INLINE_CAP: usize = 16; diff --git a/fuzz/fuzz_targets/main.rs b/fuzz/fuzz_targets/main.rs index 4a779c54..89b16316 100644 --- a/fuzz/fuzz_targets/main.rs +++ b/fuzz/fuzz_targets/main.rs @@ -4,9 +4,9 @@ use { arbitrary::Arbitrary, + core::fmt::Debug, libfuzzer_sys::fuzz_target, - smallvec::SmallVec, - core::fmt::Debug + smallvec::SmallVec }; // Upper bound on the harness's test vectors's capacity.