From 8140f944210f4a473e397bfeebb0abaa15369f68 Mon Sep 17 00:00:00 2001 From: Okko Hakola Date: Sun, 26 Nov 2023 19:40:03 +0200 Subject: [PATCH] Fix clippy --- egui_node_graph/src/editor_ui.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/egui_node_graph/src/editor_ui.rs b/egui_node_graph/src/editor_ui.rs index c66fa8f..9a4b816 100644 --- a/egui_node_graph/src/editor_ui.rs +++ b/egui_node_graph/src/editor_ui.rs @@ -649,12 +649,12 @@ where .text_style(TextStyle::Button) .color(text_color), )); - responses.extend( - self.graph[self.node_id] - .user_data - .top_bar_ui(ui, self.node_id, self.graph, user_state) - .into_iter(), - ); + responses.extend(self.graph[self.node_id].user_data.top_bar_ui( + ui, + self.node_id, + self.graph, + user_state, + )); ui.add_space(8.0 * pan_zoom.zoom); // The size of the little cross icon }); ui.add_space(margin.y); @@ -733,12 +733,12 @@ where output_port_heights.push((height_before + height_after) / 2.0); } - responses.extend( - self.graph[self.node_id] - .user_data - .bottom_ui(ui, self.node_id, self.graph, user_state) - .into_iter(), - ); + responses.extend(self.graph[self.node_id].user_data.bottom_ui( + ui, + self.node_id, + self.graph, + user_state, + )); }); // Second pass, iterate again to draw the ports. This happens outside