Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
pnordahl committed Dec 1, 2024
1 parent 50b248e commit 102a258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Dag {
pub(crate) fn get_label_by_node(&self, node: &usize) -> Result<&String, GraphError> {
self.node2label
.get(node)
.ok_or_else(|| GraphError::LabelNotFound(*node))
.ok_or(GraphError::LabelNotFound(*node))
}

// Walk the graph from node and mark all descendents with the provided visibility.
Expand Down

0 comments on commit 102a258

Please sign in to comment.