mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Format let-else
This commit is contained in:
parent
28fcd1bdd7
commit
69cd3c30ac
38 changed files with 572 additions and 306 deletions
|
@ -135,10 +135,7 @@ impl Path {
|
|||
|
||||
pub fn segments(&self) -> PathSegments<'_> {
|
||||
let Path::Normal { mod_path, generic_args, .. } = self else {
|
||||
return PathSegments {
|
||||
segments: &[],
|
||||
generic_args: None,
|
||||
};
|
||||
return PathSegments { segments: &[], generic_args: None };
|
||||
};
|
||||
let s =
|
||||
PathSegments { segments: mod_path.segments(), generic_args: generic_args.as_deref() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue