lossy utf8

This commit is contained in:
Robin Appelman 2023-03-27 19:21:20 +02:00
commit b95c58a257
2 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,8 @@ use tf_log_parser::parse;
fn main() -> Result<(), MainError> {
let path = args().nth(1).expect("No path provided");
let content = fs::read_to_string(path)?;
let content = fs::read(path)?;
let content = String::from_utf8_lossy(&content);
let log = parse(&content)?;