Skip to content

Commit

Permalink
ci(benchmarks): NeverGrowInPlaceAllocator not pub (#5727)
Browse files Browse the repository at this point in the history
Global allocator used in benchmarks `NeverGrowInPlaceAllocator` doesn't need to be `pub`.
  • Loading branch information
overlookmotel committed Sep 12, 2024
1 parent e9c084a commit 3ce8546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/benchmark/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static GLOBAL: NeverGrowInPlaceAllocator = NeverGrowInPlaceAllocator;
/// [`GlobalAlloc::realloc`] implementation which *never* grows in place.
/// It therefore represents the "worse case scenario" for memory allocation performance.
/// This behavior is consistent and predictable, and therefore stabilizes benchmark results.
pub struct NeverGrowInPlaceAllocator;
struct NeverGrowInPlaceAllocator;

// SAFETY: Methods simply delegate to `System` allocator
#[expect(unsafe_code, clippy::undocumented_unsafe_blocks)]
Expand Down

0 comments on commit 3ce8546

Please sign in to comment.