Consistently use 'Self' type in 'impl' blocks
This commit is contained in:
parent
3f4c23321f
commit
2c140d0481
3 changed files with 21 additions and 21 deletions
|
|
@ -43,7 +43,7 @@ impl Square {
|
|||
}
|
||||
|
||||
/// Iterate over all squares in order.
|
||||
pub fn iter() -> impl Iterator<Item = Square> {
|
||||
pub fn iter() -> impl Iterator<Item = Self> {
|
||||
Self::ALL.iter().cloned()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue