Compare commits

...

2 Commits

Author SHA1 Message Date
Olivia Brooks
182d7b29b4 Restore some stats readouts. 2025-06-18 12:46:08 -04:00
Olivia Brooks
56ba50e4ea Add error trait to error type. 2025-06-18 12:45:49 -04:00
2 changed files with 3 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ impl fmt::Display for LogFileError {
}
}
impl std::error::Error for LogFileError {}
impl From<SpannedError> for LogFileError {
fn from(value: SpannedError) -> Self {
Self::RonSpanned(value)

View File

@@ -4,7 +4,7 @@ use clap::{ArgAction, Parser};
use core::panic;
use gamelog::{Action, Down, Flags, Key, LogFile, Team, TerrainState};
use std::{io, path::PathBuf, sync::mpsc, thread};
//use strum::IntoEnumIterator;
use strum::IntoEnumIterator;
use tui::App;
#[derive(Debug, Parser)]
@@ -89,7 +89,6 @@ fn main() -> io::Result<()> {
.push(game.penalties(team.to_owned()));
}
/*
for team in gamelog::Team::iter() {
let team_idx = stats
.iter()
@@ -105,7 +104,6 @@ fn main() -> io::Result<()> {
//stats[team_idx].play_frequencies = Some(log.frequency_of_plays(team.to_owned()))
}
*/
}
// :#? for pretty-printing.