Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress new clippy lints. #460

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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