Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Jul 12, 2024
1 parent 7593f77 commit 2210eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/custom_yaml/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Variable {
return Err(BadVariableError::Infinite {
name: self.name.clone(),
});
} else if steps > i64::from(std::u32::MAX) {
} else if steps > i64::from(u32::MAX) {
return Err(BadVariableError::TooManyValues {
name: self.name.clone(),
steps,
Expand Down
2 changes: 1 addition & 1 deletion src/iiif/tile_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl ImageInfo {
info.width = cropped_size.x;
info.height = Some(cropped_size.y);
if let Some(scale_factors) = &self.scale_factors {
info.scale_factors = scale_factors.clone()
info.scale_factors.clone_from(scale_factors)
}
tiles.push(info)
}
Expand Down

0 comments on commit 2210eb4

Please sign in to comment.