Adopt let else in more places
This commit is contained in:
@@ -44,9 +44,8 @@ impl MultiItemModifier for Expander {
|
||||
template,
|
||||
);
|
||||
|
||||
let path = match validate_input(ecx, meta_item) {
|
||||
Some(path) => path,
|
||||
None => return ExpandResult::Ready(Vec::new()),
|
||||
let Some(path) = validate_input(ecx, meta_item) else {
|
||||
return ExpandResult::Ready(Vec::new());
|
||||
};
|
||||
|
||||
match ecx.resolver.cfg_accessible(ecx.current_expansion.id, path) {
|
||||
|
||||
Reference in New Issue
Block a user