Skip to content

Commit 5545b3b

Browse files
committed
Suppress a new clippy::unnecessary-map-or warning
Clippy's suggested fix requires a 1.82.0 MSRV. So for now, merely suppress it. Issue #628
1 parent 62f92cb commit 5545b3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mockall_derive/src/mock_function.rs

+1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ impl<'a> Builder<'a> {
266266
let mut return_ref = false;
267267
let mut return_refmut = false;
268268
if let Type::Reference(ref tr) = &output {
269+
#[allow(clippy::unnecessary_map_or)]
269270
if tr.lifetime.as_ref().map_or(true, |lt| lt.ident != "static")
270271
{
271272
if tr.mutability.is_none() {

0 commit comments

Comments
 (0)