From 9d0b1ff55172f1fd004d9c93c68e3a1bd32bab40 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 12 Oct 2022 13:38:36 +0200 Subject: [PATCH] Update order of code Important stuff first, secondary stuff used by the important stuff second. --- crates/fj-viewer/src/gui.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/fj-viewer/src/gui.rs b/crates/fj-viewer/src/gui.rs index ba9db562b..a3cea286a 100644 --- a/crates/fj-viewer/src/gui.rs +++ b/crates/fj-viewer/src/gui.rs @@ -14,15 +14,6 @@ //! //! -#[derive(Default)] -pub struct Options { - pub show_trace: bool, - pub show_layout_debug_on_hover: bool, - pub show_debug_text_example: bool, - pub show_settings_ui: bool, - pub show_inspection_ui: bool, -} - pub struct Gui { pub context: egui::Context, pub render_pass: egui_wgpu::renderer::RenderPass, @@ -81,3 +72,12 @@ impl std::fmt::Debug for Gui { f.write_str("EguiState {}") } } + +#[derive(Default)] +pub struct Options { + pub show_trace: bool, + pub show_layout_debug_on_hover: bool, + pub show_debug_text_example: bool, + pub show_settings_ui: bool, + pub show_inspection_ui: bool, +}