remove stray '+' tokens, derive Debug for Snapshot, and convert name to String
This commit is contained in:
@@ -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,7 +170,8 @@ 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(),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user