Skip to content

Commit 37f0522

Browse files
committed
chore: fix clippy
1 parent a119f67 commit 37f0522

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/graph/minimum_spanning_tree.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Edge {
1616

1717
impl Edge {
1818
/// Creates a new edge with the specified source, destination, and cost.
19-
fn new(source: usize, destination: usize, cost: usize) -> Self {
19+
pub fn new(source: usize, destination: usize, cost: usize) -> Self {
2020
Self {
2121
source,
2222
destination,
@@ -150,9 +150,7 @@ mod tests {
150150
vec![
151151
Edge::new(0, 1, 4),
152152
Edge::new(0, 2, 6),
153-
// Component 1 (vertices 0, 1, 2)
154153
Edge::new(3, 4, 2),
155-
// Component 2 (vertices 3, 4)
156154
],
157155
5,
158156
None

0 commit comments

Comments
 (0)