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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user