Skip to content

Commit

Permalink
Suppress new clippy lints. (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Aug 24, 2023
1 parent 217a3f5 commit 8402a70
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions trustfall_core/fuzz/fuzz_targets/adapter_batching/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ impl<'a> TryFrom<&'a [u8]> for TestCase<'a> {
}

fn execute_query_with_fuzzed_batching(test_case: TestCase<'_>) {
#[allow(clippy::arc_with_non_send_sync)]
let adapter =
Arc::new(VariableBatchingAdapter::new(numbers_adapter::NumbersAdapter, test_case.cursor));
interpret_ir(adapter, test_case.query, test_case.arguments).unwrap().for_each(drop);
Expand Down
2 changes: 2 additions & 0 deletions trustfall_core/src/interpreter/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,8 @@ mod tests {

let arguments =
Arc::new(input_data.arguments.into_iter().map(|(k, v)| (k.into(), v)).collect());

#[allow(clippy::arc_with_non_send_sync)]
let adapter =
Arc::new(VariableBatchingAdapter::new(NumbersAdapter::new(), batch_sequences));
let actual_results: Vec<_> =
Expand Down
1 change: 1 addition & 0 deletions trustfall_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pub fn execute_query(

let query = trustfall_core::frontend::parse(schema, query).map_err(|e| format!("{e}"))?;

#[allow(clippy::arc_with_non_send_sync)]
let wrapped_adapter = Arc::new(AdapterShim::new(adapter));

let results_iter =
Expand Down
1 change: 1 addition & 0 deletions trustfall_wasm/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ pub fn run_numbers_query(

let query = trustfall_core::frontend::parse(&schema, query).map_err(|e| e.to_string())?;

#[allow(clippy::arc_with_non_send_sync)]
let wrapped_adapter = Arc::new(AdapterShim::new(adapter));

let results: Vec<_> = trustfall_core::interpreter::execution::interpret_ir(
Expand Down

0 comments on commit 8402a70

Please sign in to comment.