Consistently use 'Self' type in 'impl' blocks

This commit is contained in:
Bruno BELANYI 2022-07-20 19:18:46 +02:00
parent 3f4c23321f
commit 2c140d0481
3 changed files with 21 additions and 21 deletions

View file

@ -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()
}