diff --git a/src/bin/mc-repack/report.rs b/src/bin/mc-repack/report.rs index fecf63b..6f8fa40 100644 --- a/src/bin/mc-repack/report.rs +++ b/src/bin/mc-repack/report.rs @@ -2,7 +2,7 @@ use std::{fs, io, path}; pub struct Report(Box, Vec<(Box, u64, u64)>); impl Report { - pub fn new(p: Box) -> Self { + pub const fn new(p: Box) -> Self { Self(p, Vec::new()) } pub fn push(&mut self, name: &str, old_size: u64, new_size: u64) {