Skip to content

Commit

Permalink
Bumped up dependency versions.
Browse files Browse the repository at this point in the history
Addressed Clippy warnings.
  • Loading branch information
zlogic committed May 4, 2024
1 parent 96d1dcf commit 6c46402
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 64 deletions.
111 changes: 51 additions & 60 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kamadak-exif = { version = "0.5", default-features = false }
ash = { version = "0.38", default-features = false, features = ["loaded"] }

[target.'cfg(target_os = "macos")'.dependencies]
metal = { version = "0.27", default-features = false, features = ["link"] }
metal = { version = "0.28", default-features = false, features = ["link"] }

[profile.release]
strip = true
Expand Down
2 changes: 1 addition & 1 deletion src/correlation/gpu/metal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl Device {

impl super::Device for Device {
fn set_buffer_direction(&mut self, direction: &CorrelationDirection) -> Result<(), GpuError> {
self.direction = direction.to_owned();
self.direction.clone_from(&direction.to_owned());
Ok(())
}

Expand Down
5 changes: 3 additions & 2 deletions src/triangulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,8 @@ impl PerspectiveTriangulation {
}
for (i, remap_projection) in remap_projections.iter().enumerate() {
if let Some(new_index) = remap_projection {
self.cameras[*new_index] = self.cameras[i].to_owned();
let src_camera = self.cameras[i].clone();
self.cameras[*new_index] = src_camera;
self.projections[*new_index] = self.projections[i];
}
}
Expand Down Expand Up @@ -981,7 +982,7 @@ impl PerspectiveTriangulation {
})
.reduce(reduce_best_result)
})
.reduce(|| best_result.clone(), reduce_best_result);
.reduce(|| best_result.to_owned(), reduce_best_result);

best_result = (camera, count, error);
if count >= RANSAC_D_EARLY_EXIT {
Expand Down

0 comments on commit 6c46402

Please sign in to comment.