Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Dec 10, 2024
1 parent 8a44863 commit d035ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions martin/src/cog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ fn get_grid_dims(
) -> Result<(u32, u32), FileError> {
let (tile_width, tile_height) = (decoder.chunk_dimensions().0, decoder.chunk_dimensions().1);
let (image_width, image_length) = get_image_dims(decoder, path, image_ifd)?;
let tiles_across = (image_width + tile_width - 1) / tile_width;
let tiles_down = (image_length + tile_height - 1) / tile_height;
let tiles_across = image_width.div_ceil(tile_width);
let tiles_down = image_length.div_ceil(tile_height);

Ok((tiles_across, tiles_down))
}
Expand Down

0 comments on commit d035ff4

Please sign in to comment.