From 9cd24175c8997bf12fedd3122610ca67bc398c8e Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 19 Feb 2024 15:09:30 +0100 Subject: [PATCH] Inline redundant variable --- crates/fj-core/src/operations/presentation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/fj-core/src/operations/presentation.rs b/crates/fj-core/src/operations/presentation.rs index 8e8859297..64c5bc156 100644 --- a/crates/fj-core/src/operations/presentation.rs +++ b/crates/fj-core/src/operations/presentation.rs @@ -24,8 +24,8 @@ pub trait SetColor { impl SetColor for Handle { fn set_color(&self, color: impl Into, core: &mut Core) { - let color = color.into(); - - core.layers.presentation.set_color(self.clone(), color); + core.layers + .presentation + .set_color(self.clone(), color.into()); } }