Skip to content

Commit

Permalink
style(sdf-server): remove unused .enumerate index
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Jun 14, 2024
1 parent 533e864 commit 965761d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/sdf-server/src/server/service/graphviz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub async fn schema_variant(
let rel_edges = workspace_snapshot
.get_edges_between_nodes(id, target.id())
.await?;
rel_edges.iter().enumerate().for_each(|(_, edge)| {
rel_edges.iter().for_each(|edge| {
edges.push(GraphVizEdge {
from: id,
to: target.id(),
Expand Down Expand Up @@ -185,7 +185,7 @@ pub async fn schema_variant(
let rel_edges = workspace_snapshot
.get_edges_between_nodes(source.id(), id)
.await?;
rel_edges.iter().enumerate().for_each(|(_, edge)| {
rel_edges.iter().for_each(|edge| {
edges.push(GraphVizEdge {
from: source.id(),
to: id,
Expand Down Expand Up @@ -232,7 +232,7 @@ pub async fn schema_variant(
let rel_edges = workspace_snapshot
.get_edges_between_nodes(cat_inner.id(), func_id)
.await?;
rel_edges.iter().enumerate().for_each(|(_, edge)| {
rel_edges.iter().for_each(|edge| {
edges.push(GraphVizEdge {
from: cat_inner.id(),
to: func_id,
Expand Down Expand Up @@ -269,7 +269,7 @@ pub async fn schema_variant(
let rel_edges = workspace_snapshot
.get_edges_between_nodes(root_content.id(), cat_inner.id())
.await?;
rel_edges.iter().enumerate().for_each(|(_, edge)| {
rel_edges.iter().for_each(|edge| {
edges.push(GraphVizEdge {
from: root_content.id(),
to: cat_inner.id(),
Expand Down Expand Up @@ -340,7 +340,7 @@ pub async fn components(
let rel_edges = workspace_snapshot
.get_edges_between_nodes(id, target.id())
.await?;
rel_edges.iter().enumerate().for_each(|(_, edge)| {
rel_edges.iter().for_each(|edge| {
edges.push(GraphVizEdge {
from: id,
to: target.id(),
Expand Down

0 comments on commit 965761d

Please sign in to comment.