From d99812364f2a8c12f4593c0cc877879867741ae5 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 4 May 2020 18:38:15 +0200 Subject: [PATCH] Silence clippy warning --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index ae83bd69..61395efd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,6 +26,7 @@ pub fn default_true() -> bool { /// Simplfy dereferences the given bool. /// /// Useful for `#[serde(skip_serializing_if = ...)]` +#[allow(clippy::trivially_copy_pass_by_ref)] pub fn is_true(b: &bool) -> bool { *b }