From 9d1306198c2e5db52e34de4e7bd1429d1106e25e Mon Sep 17 00:00:00 2001 From: David Bernard Date: Sat, 1 Jun 2024 20:14:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=20disable=20clipply=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/json_helpers.rs | 1 + src/jsonnet_helpers.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/json_helpers.rs b/src/json_helpers.rs index 05edcb0..a39c4ac 100644 --- a/src/json_helpers.rs +++ b/src/json_helpers.rs @@ -174,6 +174,7 @@ impl DataFormat { } } +#[allow(clippy::result_large_err)] fn json_query>(expr: E, data: T) -> Result { // let data = data.to_jmespath(); let res = jmespath::compile(expr.as_ref()) diff --git a/src/jsonnet_helpers.rs b/src/jsonnet_helpers.rs index 314c2f4..3687a9e 100644 --- a/src/jsonnet_helpers.rs +++ b/src/jsonnet_helpers.rs @@ -9,6 +9,7 @@ enum JsonnetError { EvaluateError { source_str: String }, } +#[allow(clippy::let_and_return)] fn jsonnet_block<'reg, 'rc>( h: &Helper<'rc>, r: &'reg Handlebars,