Silence clippy warning
This commit is contained in:
parent
25f302f491
commit
d99812364f
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user