Silence clippy warning

This commit is contained in:
Jonas Platte 2020-05-04 18:38:15 +02:00
parent 25f302f491
commit d99812364f
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -26,6 +26,7 @@ pub fn default_true() -> bool {
/// Simplfy dereferences the given bool. /// Simplfy dereferences the given bool.
/// ///
/// Useful for `#[serde(skip_serializing_if = ...)]` /// Useful for `#[serde(skip_serializing_if = ...)]`
#[allow(clippy::trivially_copy_pass_by_ref)]
pub fn is_true(b: &bool) -> bool { pub fn is_true(b: &bool) -> bool {
*b *b
} }