1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

borrowed data

This commit is contained in:
Robin Appelman 2020-12-06 00:55:54 +01:00
commit a4ddd586dd
27 changed files with 181 additions and 176 deletions

View file

@ -23,7 +23,7 @@ fn main() -> Result<(), MainError> {
.map(|arg| arg.as_str() == "all")
.unwrap_or_default();
let file = fs::read(path)?;
let demo = Demo::new(file);
let demo = Demo::new(&file);
let parser = if all {
DemoParser::new_all(demo.get_stream())
} else {