From cb332fa203891c9b5d98dd1ddf7933ff032113a9 Mon Sep 17 00:00:00 2001 From: muzarski Date: Tue, 18 Jun 2024 18:37:42 +0200 Subject: [PATCH] macros: clippy - allow manual unwrap_or_default Clippy complains about the code generated by `darling` crate. This commit silences clippy by allowing to perform manual unwrap_or_default. --- scylla-macros/src/serialize/row.rs | 3 +++ scylla-macros/src/serialize/value.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scylla-macros/src/serialize/row.rs b/scylla-macros/src/serialize/row.rs index fd4649dc56..4b1ff87433 100644 --- a/scylla-macros/src/serialize/row.rs +++ b/scylla-macros/src/serialize/row.rs @@ -1,3 +1,6 @@ +// See: https://github.com/TedDriggs/darling/issues/293 +#![allow(clippy::manual_unwrap_or_default)] + use std::collections::HashMap; use darling::FromAttributes; diff --git a/scylla-macros/src/serialize/value.rs b/scylla-macros/src/serialize/value.rs index 8d2d72044d..b096df7eb9 100644 --- a/scylla-macros/src/serialize/value.rs +++ b/scylla-macros/src/serialize/value.rs @@ -1,3 +1,6 @@ +// See: https://github.com/TedDriggs/darling/issues/293 +#![allow(clippy::manual_unwrap_or_default)] + use std::collections::HashMap; use darling::FromAttributes;