re-format with new rustfmt
This commit is contained in:
parent
b221c877e8
commit
971c549ca3
15 changed files with 111 additions and 81 deletions
|
@ -1525,14 +1525,12 @@ fn generator_layout_and_saved_local_names(
|
|||
// Deref of the `Pin<&mut Self>` state argument.
|
||||
mir::ProjectionElem::Field(..),
|
||||
mir::ProjectionElem::Deref,
|
||||
|
||||
// Field of a variant of the state.
|
||||
mir::ProjectionElem::Downcast(_, variant),
|
||||
mir::ProjectionElem::Field(field, _),
|
||||
] => {
|
||||
let name = &mut generator_saved_local_names[
|
||||
generator_layout.variant_fields[variant][field]
|
||||
];
|
||||
let name = &mut generator_saved_local_names
|
||||
[generator_layout.variant_fields[variant][field]];
|
||||
if name.is_none() {
|
||||
name.replace(var.name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue