fix: update Score trait implementation and TUI initialization

Update the `Score` trait implementations to return a `Box<dyn Interpret>` instead of concrete types or clones where necessary. Additionally, refactor the initialization and cleanup in `HarmonyTUI` to use utility functions provided by `ratatui`.
This commit is contained in:
2025-01-25 12:36:22 -05:00
parent 4bbe8e84d8
commit 651266d71c
19 changed files with 57 additions and 62 deletions

View File

@@ -92,5 +92,5 @@ async fn main() {
// maestro.interpret(dhcp_score).await.unwrap();
// maestro.interpret(load_balancer_score).await.unwrap();
// maestro.interpret(tftp_score).await.unwrap();
maestro.interpret(http_score).await.unwrap();
maestro.interpret(&http_score).await.unwrap();
}