Skip to content

Commit

Permalink
fix clippy (bevyengine#7302)
Browse files Browse the repository at this point in the history
# Objective

- `cargo clippy` should work (except for clippy::type_complexity)

## Solution

- fix new clippy lints
  • Loading branch information
jakobhellermann committed Jan 20, 2023
1 parent 0804136 commit 02637b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/render_graph/node_slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl From<&'static str> for SlotLabel {

impl From<Cow<'static, str>> for SlotLabel {
fn from(value: Cow<'static, str>) -> Self {
SlotLabel::Name(value.clone())
SlotLabel::Name(value)
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_render/src/renderer/graph_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl RenderGraphRunner {
return Err(RenderGraphRunnerError::MissingInput {
slot_index: i,
slot_name: input_slot.name.clone(),
graph_name: graph_name.clone(),
graph_name,
});
}
}
Expand Down

0 comments on commit 02637b6

Please sign in to comment.