From 834881f798f75ccdce17d09be6fc85623ac47c9c Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Thu, 24 Aug 2023 14:13:14 +0000 Subject: [PATCH] Suppress new clippy lints. --- trustfall_core/fuzz/fuzz_targets/adapter_batching/mod.rs | 1 + trustfall_core/src/interpreter/execution.rs | 2 ++ trustfall_wasm/src/lib.rs | 1 + trustfall_wasm/tests/common.rs | 1 + 4 files changed, 5 insertions(+) diff --git a/trustfall_core/fuzz/fuzz_targets/adapter_batching/mod.rs b/trustfall_core/fuzz/fuzz_targets/adapter_batching/mod.rs index 94fd6d0f..54c93769 100644 --- a/trustfall_core/fuzz/fuzz_targets/adapter_batching/mod.rs +++ b/trustfall_core/fuzz/fuzz_targets/adapter_batching/mod.rs @@ -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); diff --git a/trustfall_core/src/interpreter/execution.rs b/trustfall_core/src/interpreter/execution.rs index f3492732..64dee053 100644 --- a/trustfall_core/src/interpreter/execution.rs +++ b/trustfall_core/src/interpreter/execution.rs @@ -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<_> = diff --git a/trustfall_wasm/src/lib.rs b/trustfall_wasm/src/lib.rs index a09313d4..7c53f95f 100644 --- a/trustfall_wasm/src/lib.rs +++ b/trustfall_wasm/src/lib.rs @@ -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 = diff --git a/trustfall_wasm/tests/common.rs b/trustfall_wasm/tests/common.rs index e3bebcb3..43f894e5 100644 --- a/trustfall_wasm/tests/common.rs +++ b/trustfall_wasm/tests/common.rs @@ -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(