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 Mar 22, 2024
1 parent 18b8e95 commit 3d2ee94
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 70 deletions.
132 changes: 68 additions & 64 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "cybervision"
version = "0.19.0"
version = "0.19.1"
edition = "2021"
authors = ["Dmitry Zolotukhin <[email protected]>"]
repository = "https://github.com/zlogic/cybervision"
license = "Apache-2.0"
rust-version = "1.75"
rust-version = "1.76"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
image = { version = "0.24", default_features = false, features = ["png", "jpeg", "tiff", "jpeg_rayon"] }
image = { version = "0.25", default_features = false, features = ["png", "jpeg", "tiff", "rayon"] }
indicatif = { version = "0.17", default_features = false }
rayon = "*"
rand = { version = "0.8", default_features = false, features = ["std", "std_rng", "small_rng"] }
Expand Down
4 changes: 2 additions & 2 deletions src/correlation/gpu/metal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,10 @@ impl super::Device for Device {
impl Drop for DeviceContext {
fn drop(&mut self) {
autoreleasepool(|| {
self.device.as_mut().map(|device| {
if let Some(device) = self.device.as_mut() {
device.pipelines.clear();
device.buffers = None;
});
};
self.device = None;
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/correlation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ impl PointCorrelations<'_> {
corridor_end: usize,
) -> Option<Range<usize>> {
let scale = correlation_step.scale;
thread_local! {static STDEV_RANGE: RefCell<Vec<f64>> = RefCell::new(Vec::new())};
thread_local! {static STDEV_RANGE: RefCell<Vec<f64>> = const { RefCell::new(Vec::new()) }};
let mut mid_corridor = 0.0;
let mut neighbor_count: usize = 0;

Expand Down

0 comments on commit 3d2ee94

Please sign in to comment.