Cleanup code suggestion for into_iter_without_iter

Reorder the suggested code for the `IntoIterator` to match the ordering of the trait declaration:

```rust
impl IntoIterator for ... {
    type Item = ...;
    type IntoIter = ...;
```
This commit is contained in:
Yuri Astrakhan 2024-10-30 13:10:55 -04:00
parent 1bdc08a6bc
commit 323f144fe1
2 changed files with 9 additions and 9 deletions

View file

@ -247,8 +247,8 @@ impl {self_ty_without_ref} {{
let sugg = format!(
"
impl IntoIterator for {self_ty_snippet} {{
type IntoIter = {ret_ty};
type Item = {iter_ty};
type IntoIter = {ret_ty};
fn into_iter(self) -> Self::IntoIter {{
self.iter()
}}