Skip to content

Commit

Permalink
Add error msg for displaying statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Nov 12, 2023
1 parent 9d5e950 commit 2083448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mbtiles/src/mbtiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ impl Display for Statistics {
.unwrap();
}
if self.count != 0 {
let smallest = SizeFormatterBinary::new(self.smallest.unwrap());
let largest = SizeFormatterBinary::new(self.largest.unwrap());
let smallest = SizeFormatterBinary::new(self.smallest.expect("The smallest tile size of all zoom levels shouldn't be None when the tiles count of all zoom level is not 0"));
let largest = SizeFormatterBinary::new(self.largest.expect("The largest tile size of all zoom levels shouldn't be None when the tiles count of all zoom level is not 0"));
let average = SizeFormatterBinary::new(self.average as u64);
writeln!(
f,
Expand Down

0 comments on commit 2083448

Please sign in to comment.