Skip to content

Commit 8508470

Browse files
committed
fix: add missing lifetimes
1 parent 2a9b27e commit 8508470

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/grid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl Grid {
333333

334334
/// Iterate over edges.
335335
#[must_use]
336-
pub const fn edges(&self) -> EdgesIterator {
336+
pub const fn edges(&self) -> EdgesIterator<'_> {
337337
EdgesIterator {
338338
grid: self,
339339
x: 0,
@@ -442,7 +442,7 @@ impl Grid {
442442

443443
/// Iterate over vertices.
444444
#[must_use]
445-
pub fn iter(&self) -> GridIterator {
445+
pub fn iter(&self) -> GridIterator<'_> {
446446
self.into_iter()
447447
}
448448

src/matrix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,12 +640,12 @@ impl<C> Matrix<C> {
640640
}
641641

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

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

0 commit comments

Comments
 (0)