Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi committed Apr 7, 2023
1 parent 3236e66 commit cde8e7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions trustfall_core/fuzz/fuzz_targets/adapter_batching/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,13 @@ pub(crate) struct TestIRQuery {
pub(crate) arguments: BTreeMap<String, FieldValue>,
}

type QueryAndArgs = (Arc<IndexedQuery>, Arc<BTreeMap<Arc<str>, FieldValue>>);

lazy_static! {
static ref QUERY_DATA: Vec<(Arc<IndexedQuery>, Arc<BTreeMap<Arc<str>, FieldValue>>)> =
load_queries();
static ref QUERY_DATA: Vec<QueryAndArgs> = load_queries();
}

fn load_queries() -> Vec<(Arc<IndexedQuery>, Arc<BTreeMap<Arc<str>, FieldValue>>)> {
fn load_queries() -> Vec<QueryAndArgs> {
let mut buf = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
buf.pop();
buf.push("test_data/tests/valid_queries");
Expand Down Expand Up @@ -250,7 +251,7 @@ impl<'a> TryFrom<&'a [u8]> for TestCase<'a> {
}
}

fn execute_query_with_fuzzed_batching<'a>(test_case: TestCase<'a>) {
fn execute_query_with_fuzzed_batching(test_case: TestCase<'_>) {
let adapter = Rc::new(RefCell::new(VariableBatchingAdapter::new(
numbers_adapter::NumbersAdapter,
test_case.cursor,
Expand Down

0 comments on commit cde8e7d

Please sign in to comment.