Skip to content

Commit

Permalink
Address clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
superdump committed Aug 21, 2021
1 parent 0cd3c94 commit 9982ce9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pipelined/bevy_render2/src/render_graph/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ impl Edges {
.find(|(_i, e)| **e == edge)
{
self.input_edges.swap_remove(index);
return Ok(());
Ok(())
} else {
return Err(RenderGraphError::EdgeDoesNotExist(edge));
Err(RenderGraphError::EdgeDoesNotExist(edge))
}
}

Expand All @@ -104,9 +104,9 @@ impl Edges {
.find(|(_i, e)| **e == edge)
{
self.output_edges.swap_remove(index);
return Ok(());
Ok(())
} else {
return Err(RenderGraphError::EdgeDoesNotExist(edge));
Err(RenderGraphError::EdgeDoesNotExist(edge))
}
}

Expand Down

0 comments on commit 9982ce9

Please sign in to comment.