1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 18:54:05 +02:00

clippy fixes

This commit is contained in:
Robin Appelman 2025-02-15 16:55:20 +01:00
commit 5e1ae07d36
5 changed files with 83 additions and 164 deletions

View file

@ -6,12 +6,12 @@ const MAP_BYTES: &[u8] = include_bytes!("../koth_bagel_rc2a.bsp");
fn from_bytes(c: &mut Criterion) {
c.bench_function("parse bsp", |b| {
b.iter(|| Bsp::read(black_box(&MAP_BYTES)).unwrap())
b.iter(|| Bsp::read(black_box(MAP_BYTES)).unwrap())
});
}
fn leaf_at(c: &mut Criterion) {
let bsp = Bsp::read(&MAP_BYTES).unwrap();
let bsp = Bsp::read(MAP_BYTES).unwrap();
c.bench_function("get leaf at position", |b| {
b.iter(|| {