mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Format let-else
This commit is contained in:
parent
28fcd1bdd7
commit
69cd3c30ac
38 changed files with 572 additions and 306 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue