Skip to content

Commit

Permalink
Generics cleanups, scope cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem committed Oct 22, 2024
1 parent 592f690 commit 6e9eb84
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 281 deletions.
4 changes: 2 additions & 2 deletions core/benches/arrays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use pretty::{DocBuilder, Pretty};
/// Generates a pseaudo-random Nickel array as a string.
#[cfg(not(feature = "benchmark-ci"))]
fn ncl_random_array(len: usize) -> String {
use nickel_lang_core::pretty::BoundedAllocator;
use nickel_lang_core::pretty::Allocator;

let m = 2_u64.pow(32);
let a = 1664525;
Expand All @@ -26,7 +26,7 @@ fn ncl_random_array(len: usize) -> String {
numbers.into_iter().collect(),
ArrayAttrs::default(),
));
let alloc = BoundedAllocator::default();
let alloc = Allocator::default();
let doc: DocBuilder<_, ()> = xs.pretty(&alloc);
let mut out = Vec::new();
doc.render(80, &mut out).unwrap();
Expand Down
Loading

0 comments on commit 6e9eb84

Please sign in to comment.