Format let-else

This commit is contained in:
Lukas Wirth 2023-07-03 20:34:09 +02:00
parent 28fcd1bdd7
commit 69cd3c30ac
38 changed files with 572 additions and 306 deletions

View file

@ -623,7 +623,9 @@ fn fn_generic_params(
fn params_and_where_preds_in_scope(
ctx: &AssistContext<'_>,
) -> (Vec<ast::GenericParam>, Vec<ast::WherePred>) {
let Some(body) = containing_body(ctx) else { return Default::default(); };
let Some(body) = containing_body(ctx) else {
return Default::default();
};
let mut generic_params = Vec::new();
let mut where_clauses = Vec::new();