Skip to content

Commit

Permalink
fix allocation size (wrong type was allocated)
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed May 22, 2024
1 parent 86361cf commit 9190935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/rust-nea/src/bin/varying-allocations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn respond(request: &Request) -> Vec<u8> {
let n = request.path[1..].parse::<usize>().unwrap();
let capacity = n * 1024;

let v = vec![0xAA; capacity];
let v = vec![0xAAu8; capacity];

format_response(&format!("{}", v.len()))
}

0 comments on commit 9190935

Please sign in to comment.