Skip to content

Commit

Permalink
chore: clippy fixes (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
KennedyTedesco committed Feb 5, 2023
1 parent b94c1a1 commit b38d24a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 7 additions & 6 deletions benches/bincode.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};

use ara_source::source::Source;
use ara_source::source::SourceKind;
use criterion::black_box;
use criterion::criterion_group;
use criterion::criterion_main;
use criterion::Criterion;

use ara_parser::parser;
use ara_parser::tree::Tree;
use ara_source::source::Source;
use ara_source::source::SourceKind;

fn decode_benchmark(criterion: &mut Criterion) {
let source = Source::inline(SourceKind::Script, CODE_SAMPLE);
Expand All @@ -27,10 +29,9 @@ fn decode_benchmark(criterion: &mut Criterion) {
}

criterion_group!(benches, decode_benchmark);

criterion_main!(benches);

static CODE_SAMPLE: &'static str = r#"
static CODE_SAMPLE: &str = r#"
namespace A\B\C\D\E;
function foo(string $s): self {
Expand Down
4 changes: 1 addition & 3 deletions tests/bincode_test.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use std::io;

use criterion::{black_box, criterion_group, criterion_main, Criterion};

use ara_source::source::Source;
use ara_source::source::SourceKind;

Expand Down Expand Up @@ -40,4 +38,4 @@ fn test_bincode() -> io::Result<()> {
dbg!(decoded_tree);

Ok(())
}
}

0 comments on commit b38d24a

Please sign in to comment.