mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 10:44:07 +02:00
clippy fixes
This commit is contained in:
parent
efb0a0f7f2
commit
5e1ae07d36
5 changed files with 83 additions and 164 deletions
|
|
@ -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(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue