From 105b95fc2886a606748ccf800e493e28d9abab06 Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Fri, 20 Jan 2023 14:25:25 +0000 Subject: [PATCH] fix clippy (#7302) # Objective - `cargo clippy` should work (except for clippy::type_complexity) ## Solution - fix new clippy lints --- crates/bevy_render/src/render_graph/node_slot.rs | 2 +- crates/bevy_render/src/renderer/graph_runner.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_render/src/render_graph/node_slot.rs b/crates/bevy_render/src/render_graph/node_slot.rs index 5f04794b5e353..fea24d2f473b4 100644 --- a/crates/bevy_render/src/render_graph/node_slot.rs +++ b/crates/bevy_render/src/render_graph/node_slot.rs @@ -115,7 +115,7 @@ impl From<&'static str> for SlotLabel { impl From> for SlotLabel { fn from(value: Cow<'static, str>) -> Self { - SlotLabel::Name(value.clone()) + SlotLabel::Name(value) } } diff --git a/crates/bevy_render/src/renderer/graph_runner.rs b/crates/bevy_render/src/renderer/graph_runner.rs index 1513d1c4e5697..0c392810cfb37 100644 --- a/crates/bevy_render/src/renderer/graph_runner.rs +++ b/crates/bevy_render/src/renderer/graph_runner.rs @@ -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, }); } }