use unwrap_or
This commit is contained in:
parent
da9c43a723
commit
580c5f92d1
@ -81,10 +81,7 @@ fn is_fn_ty<'a, 'tcx>(ty: &Ty<'tcx>, fcx: &FnCtxt<'a, 'tcx>, span: Span) -> bool
|
||||
})
|
||||
});
|
||||
|
||||
match opt_is_fn {
|
||||
Some(result) => result,
|
||||
None => false,
|
||||
}
|
||||
opt_is_fn.unwrap_or(false)
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user