diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-04 09:30:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-04 11:38:09 +0100 |
| commit | eb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch) | |
| tree | 9856ee4ed0222222669de10e616a580b2a60135e /tests/src/benches.rs | |
| parent | 33928a00dc58250e24da1dae4e5db17e7b598d70 (diff) | |
Style changes
Diffstat (limited to 'tests/src/benches.rs')
| -rw-r--r-- | tests/src/benches.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/benches.rs b/tests/src/benches.rs index e3c276bc..844f3bf0 100644 --- a/tests/src/benches.rs +++ b/tests/src/benches.rs @@ -58,7 +58,7 @@ fn bench_parse(iai: &mut Iai) { fn bench_edit(iai: &mut Iai) { let mut source = Source::detached(TEXT); - iai.run(|| black_box(source.edit(1168 .. 1171, "_Uhr_"))); + iai.run(|| black_box(source.edit(1168..1171, "_Uhr_"))); } fn bench_highlight(iai: &mut Iai) { @@ -66,7 +66,7 @@ fn bench_highlight(iai: &mut Iai) { iai.run(|| { typst::syntax::highlight::highlight_categories( source.root(), - 0 .. source.len_bytes(), + 0..source.len_bytes(), &mut |_, _| {}, ) }); |
