Skip to content

Commit baad5c6

Browse files
authored
Don't persist errors (#13)
1 parent dd9f641 commit baad5c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ fn main() {
9191
let dir = args.input;
9292
let start = Instant::now();
9393
let (files, errors) = parse_files(dir);
94+
let num_errors = errors.len();
95+
drop(errors);
9496
let end = Instant::now();
9597
let duration: std::time::Duration = end.duration_since(start);
9698
let memory = get_memory();
@@ -99,7 +101,7 @@ fn main() {
99101
files.len(),
100102
duration.as_secs(),
101103
duration.subsec_millis(),
102-
errors.len(),
104+
num_errors,
103105
memory / 1024 / 1024
104106
);
105107
}

0 commit comments

Comments
 (0)