remove stray '+' tokens, derive Debug for Snapshot, and convert name to String

This commit is contained in:
MayaTheShy
2025-11-02 00:33:07 -04:00
parent 3cc68df2d9
commit 97052a0d1a

View File

@@ -87,7 +87,7 @@ pub struct HexagonLauncher {
snapshots: Vec<Snapshot>, snapshots: Vec<Snapshot>,
} }
#[derive(Clone)] #[derive(Debug, Clone)]
struct Snapshot { struct Snapshot {
name: String, name: String,
cached_texture: Option<ResourceID>, cached_texture: Option<ResourceID>,
@@ -170,14 +170,15 @@ impl ClientState for HexagonLauncher {
.apps .apps
.iter() .iter()
.map(|a| Snapshot { .map(|a| Snapshot {
name: a.app.name().unwrap_or_default(), - name: a.app.name().unwrap_or_default(),
+ name: a.app.name().unwrap_or_default().to_string(),
cached_texture: a.cached_texture.get().cloned(), cached_texture: a.cached_texture.get().cloned(),
cached_gltf: a.cached_gltf.get().cloned(), cached_gltf: a.cached_gltf.get().cloned(),
}) })
.collect(); .collect();
} }
} }
impl Reify for HexagonLauncher { impl Reify for HexagonLauncher {
#[tracing::instrument(skip_all)] #[tracing::instrument(skip_all)]
fn reify(&self) -> impl Element<Self> { fn reify(&self) -> impl Element<Self> {
// measure reify latency and count // measure reify latency and count