Laconic if enum is?

Is there a way to write it laconically?

let ty_is_ref = if let syn::Type::Reference( _ ) = ty { true } else { false };

Is that the best way to write it?

let ty_is_ref = matches!(ty, syn::Type::Reference(_));
2 Likes

Roger. Thank you @quinedot.