From 97052a0d1a4bd26f25ec22a8e041e861915694fd Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 2 Nov 2025 00:33:07 -0400 Subject: [PATCH] remove stray '+' tokens, derive Debug for Snapshot, and convert name to String --- hexagon_launcher/src/main.rs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/hexagon_launcher/src/main.rs b/hexagon_launcher/src/main.rs index ffba1af..284912e 100644 --- a/hexagon_launcher/src/main.rs +++ b/hexagon_launcher/src/main.rs @@ -87,7 +87,7 @@ pub struct HexagonLauncher { snapshots: Vec, } -#[derive(Clone)] +#[derive(Debug, Clone)] struct Snapshot { name: String, cached_texture: Option, @@ -170,16 +170,17 @@ impl ClientState for HexagonLauncher { .apps .iter() .map(|a| Snapshot { - name: a.app.name().unwrap_or_default(), - cached_texture: a.cached_texture.get().cloned(), - cached_gltf: a.cached_gltf.get().cloned(), - }) - .collect(); - } -} -impl Reify for HexagonLauncher { - #[tracing::instrument(skip_all)] - fn reify(&self) -> impl Element { +- name: a.app.name().unwrap_or_default(), ++ name: a.app.name().unwrap_or_default().to_string(), + cached_texture: a.cached_texture.get().cloned(), + cached_gltf: a.cached_gltf.get().cloned(), + }) + .collect(); + } + } + impl Reify for HexagonLauncher { + #[tracing::instrument(skip_all)] + fn reify(&self) -> impl Element { // measure reify latency and count let start = std::time::Instant::now();