From 12b01648bd0d7a283b8d38e3e392c6d37cf91987 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Mon, 25 Nov 2024 23:00:53 +0100 Subject: [PATCH] Avoid use of redundant function paramater --- experiments/2024-10-30/src/render/renderer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/experiments/2024-10-30/src/render/renderer.rs b/experiments/2024-10-30/src/render/renderer.rs index 828f5844e..8820a1fc8 100644 --- a/experiments/2024-10-30/src/render/renderer.rs +++ b/experiments/2024-10-30/src/render/renderer.rs @@ -89,9 +89,13 @@ impl Renderer { pub fn render( &mut self, - selected_operation: &dyn Operation, + _: &dyn Operation, all_operations: &OpsLog, ) -> anyhow::Result<()> { + let Some(selected_operation) = all_operations.selected() else { + return Ok(()); + }; + let vertices = Geometry::vertices(&self.device, selected_operation); let triangles = Geometry::triangles(&self.device, selected_operation);