Use Option::map_or instead of .map(..).unwrap_or(..)
This commit is contained in:
@@ -429,7 +429,7 @@ fn add_query_description_impl(
|
||||
};
|
||||
|
||||
let (tcx, desc) = modifiers.desc;
|
||||
let tcx = tcx.as_ref().map(|t| quote! { #t }).unwrap_or(quote! { _ });
|
||||
let tcx = tcx.as_ref().map_or(quote! { _ }, |t| quote! { #t });
|
||||
|
||||
let desc = quote! {
|
||||
#[allow(unused_variables)]
|
||||
|
||||
Reference in New Issue
Block a user