feat: TUI does not require Topology to implement Debug anymore

This commit is contained in:
2025-04-23 11:16:33 -04:00
parent 0857aba039
commit 45668638e1
4 changed files with 15 additions and 8 deletions

View File

@@ -67,10 +67,10 @@ enum HarmonyTuiEvent<T: Topology> {
LaunchScore(Box<dyn Score<T>>),
}
impl <T: Topology> std::fmt::Display for HarmonyTuiEvent<T> {
impl<T: Topology> std::fmt::Display for HarmonyTuiEvent<T> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let output = match self {
HarmonyTuiEvent::LaunchScore(score) => format!("LaunchScore({})",score.name()),
HarmonyTuiEvent::LaunchScore(score) => format!("LaunchScore({})", score.name()),
};
f.write_str(&output)