Skip to content

Commit

Permalink
Add const in Report::new
Browse files Browse the repository at this point in the history
  • Loading branch information
szeweq committed Sep 14, 2024
1 parent 8d94095 commit 6546ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/mc-repack/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{fs, io, path};

pub struct Report(Box<path::Path>, Vec<(Box<str>, u64, u64)>);
impl Report {
pub fn new(p: Box<path::Path>) -> Self {
pub const fn new(p: Box<path::Path>) -> Self {
Self(p, Vec::new())
}
pub fn push(&mut self, name: &str, old_size: u64, new_size: u64) {
Expand Down

0 comments on commit 6546ec5

Please sign in to comment.