Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl Grid {

/// Iterate over edges.
#[must_use]
pub const fn edges(&self) -> EdgesIterator {
pub const fn edges(&self) -> EdgesIterator<'_> {
EdgesIterator {
grid: self,
x: 0,
Expand Down Expand Up @@ -442,7 +442,7 @@ impl Grid {

/// Iterate over vertices.
#[must_use]
pub fn iter(&self) -> GridIterator {
pub fn iter(&self) -> GridIterator<'_> {
self.into_iter()
}

Expand Down
4 changes: 2 additions & 2 deletions src/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,12 +640,12 @@ impl<C> Matrix<C> {
}

/// Return an iterator on values, first row first.
pub fn values(&self) -> Iter<C> {
pub fn values(&self) -> Iter<'_, C> {
self.data.iter()
}

/// Return a mutable iterator on values, first row first.
pub fn values_mut(&mut self) -> IterMut<C> {
pub fn values_mut(&mut self) -> IterMut<'_, C> {
self.data.iter_mut()
}

Expand Down
Loading