From 742fcbaa7232237f54061ab73ff43ee78a630335 Mon Sep 17 00:00:00 2001 From: Stefan Kroboth Date: Sat, 31 Aug 2024 11:02:42 +0200 Subject: [PATCH] Readd name to spectator Run struct, allow dead code for now --- crates/spectator/src/connection.rs | 1 + crates/spectator/src/data.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/crates/spectator/src/connection.rs b/crates/spectator/src/connection.rs index eb252458f..7dd2d2247 100644 --- a/crates/spectator/src/connection.rs +++ b/crates/spectator/src/connection.rs @@ -77,6 +77,7 @@ async fn handle_connection( storage.runs.insert( name.clone(), Run { + name: name.clone(), solver, settings, selected, diff --git a/crates/spectator/src/data.rs b/crates/spectator/src/data.rs index db60f2cd9..4c519b0dc 100644 --- a/crates/spectator/src/data.rs +++ b/crates/spectator/src/data.rs @@ -79,6 +79,8 @@ impl FuncCount { } pub struct Run { + #[allow(dead_code)] + pub name: String, pub solver: String, pub settings: HashMap, pub selected: HashSet,