Skip to content

Commit

Permalink
style: code readability (starkware-libs#5373)
Browse files Browse the repository at this point in the history
Co-authored-by: orizi <[email protected]>
  • Loading branch information
jujube and orizi authored Apr 8, 2024
1 parent b6fdb0b commit 003d78e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cairo-lang-utils/src/graph_algos/scc_graph_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use super::strongly_connected_components::ComputeScc;
/// A node whose neighbors are only the subset of its neighbors in the full graph, which are also in
/// the same SCC (strongly-connected-component) with it.
#[derive(Clone)]
pub struct SccGraphNode<Node: GraphNode>(Node);
impl<Node: GraphNode + ComputeScc> GraphNode for SccGraphNode<Node> {
pub struct SccGraphNode<Node: ComputeScc>(Node);
impl<Node: ComputeScc> GraphNode for SccGraphNode<Node> {
type NodeId = Node::NodeId;

fn get_neighbors(&self) -> Vec<Self> {
Expand All @@ -20,7 +20,7 @@ impl<Node: GraphNode + ComputeScc> GraphNode for SccGraphNode<Node> {
self.0.get_id()
}
}
impl<Node: GraphNode> From<Node> for SccGraphNode<Node> {
impl<Node: ComputeScc> From<Node> for SccGraphNode<Node> {
fn from(value: Node) -> Self {
SccGraphNode::<Node>(value)
}
Expand Down

0 comments on commit 003d78e

Please sign in to comment.