Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkAndshark committed Feb 4, 2025
1 parent 1381d75 commit 794d208
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions martin/src/cog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ fn get_meta(path: &PathBuf) -> Result<Meta, FileError> {
e,
vec![Tag::ImageWidth.to_u16(), Tag::ImageLength.to_u16()],
0,
path.to_path_buf(),
path.clone(),
)
})?;

Expand Down Expand Up @@ -383,7 +383,6 @@ fn get_grid_dims(
Ok((tiles_across, tiles_down))
}

/// Calculate the extent [minx, miny, maxx, maxy] of a GeoTIFF image
fn get_extent(
model_transformation: Option<Vec<f64>>,
model_tiepoint: Option<Vec<f64>>,
Expand All @@ -402,6 +401,7 @@ fn get_extent(
}

/// Calculate the extent [minx, miny, maxx, maxy] using model transformation matrix
#[allow(clippy::cast_lossless)]
fn get_extent_from_transform(
transform: &[f64],
width: u32,
Expand Down Expand Up @@ -439,6 +439,7 @@ fn get_extent_from_transform(
}

/// Calculate the extent [minx, miny, maxx, maxy] using model tiepoint and pixel scale
#[allow(clippy::cast_lossless)]
fn get_extent_from_tiepoint(
tiepoint: &[f64],
pixel_scale: &[f64],
Expand Down

0 comments on commit 794d208

Please sign in to comment.