Skip to content

Commit e8877b6

Browse files
committed
Bumped up dependency versions.
Addressed cargo clippy warnings (newer objc2 removed unsafe markers on some methods).
1 parent 89d40c2 commit e8877b6

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

Cargo.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/correlation/gpu/metal.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ impl Device {
263263
blit_encoder.synchronizeResource(buffer.as_ref());
264264
blit_encoder.endEncoding();
265265
command_buffer.commit();
266-
unsafe { command_buffer.waitUntilCompleted() };
266+
command_buffer.waitUntilCompleted();
267267
}
268268
Ok(())
269269
}
@@ -277,9 +277,8 @@ impl Device {
277277
autoreleasepool(|_| {
278278
let mut result = HashMap::new();
279279
let source = include_bytes!("shaders/correlation.metallib");
280-
let library = unsafe {
281-
device.newLibraryWithData_error(&dispatch2::DispatchData::from_bytes(source))?
282-
};
280+
let library =
281+
device.newLibraryWithData_error(&dispatch2::DispatchData::from_bytes(source))?;
283282
for module_type in ShaderModuleType::VALUES {
284283
let function = module_type.load(&library)?;
285284
let pipeline = device.newComputePipelineStateWithFunction_error(&function)?;
@@ -383,7 +382,7 @@ impl super::Device for Device {
383382
compute_encoder.endEncoding();
384383

385384
command_buffer.commit();
386-
unsafe { command_buffer.waitUntilCompleted() };
385+
command_buffer.waitUntilCompleted();
387386

388387
Ok(())
389388
})

0 commit comments

Comments
 (0)