Skip to content

Commit

Permalink
fix: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzarx1 committed Jan 25, 2025
1 parent 21cba76 commit e9cb582
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ where
}

/// Returns iterator over all edges connecting start and end node.
#[allow(clippy::type_complexity)]
pub fn edges_connecting(
&self,
start: NodeIndex<Ix>,
Expand All @@ -279,6 +280,7 @@ where
}

/// Provides iterator over all edges and their indices.
#[allow(clippy::type_complexity)]
pub fn edges_iter(&self) -> impl Iterator<Item = (EdgeIndex<Ix>, &Edge<N, E, Ty, Ix, Dn, De>)> {
self.g.edge_references().map(|e| (e.id(), e.weight()))
}
Expand Down
2 changes: 1 addition & 1 deletion src/graph_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub struct GraphView<
_marker: PhantomData<(Nd, Ed, L, S)>,
}

impl<'a, N, E, Ty, Ix, Nd, Ed, S, L> Widget for &mut GraphView<'a, N, E, Ty, Ix, Nd, Ed, S, L>
impl<N, E, Ty, Ix, Nd, Ed, S, L> Widget for &mut GraphView<'_, N, E, Ty, Ix, Nd, Ed, S, L>
where
N: Clone,
E: Clone,
Expand Down

0 comments on commit e9cb582

Please sign in to comment.