Skip to content

Commit

Permalink
Make a cosmetic adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Feb 6, 2024
1 parent 72d2d1e commit a26684d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::path::PathBuf;
use test::{black_box, Bencher};
use truetype::tables::Names;
use truetype::tape::Read as TapeRead;
use truetype::tape::Write;
use truetype::value::Read as ValueRead;
use truetype::value::Write;

macro_rules! ok(($result:expr) => ($result.unwrap()));

Expand All @@ -36,6 +36,6 @@ fn write(bencher: &mut Bencher) {
let table = ok!(Names::read(&mut file));
bencher.iter(|| {
let mut cursor = Cursor::new(vec![]);
black_box(ok!(cursor.give(&table)));
black_box(ok!(table.write(&mut cursor)));
});
}

0 comments on commit a26684d

Please sign in to comment.