diff --git a/vulkano/src/buffer/cpu_access.rs b/vulkano/src/buffer/cpu_access.rs index ed464f12..95cc8398 100644 --- a/vulkano/src/buffer/cpu_access.rs +++ b/vulkano/src/buffer/cpu_access.rs @@ -122,9 +122,7 @@ impl CpuAccessibleBuffer { -> Result>, OomError> where I: IntoIterator> { - unsafe { - CpuAccessibleBuffer::raw(device, mem::size_of::(), usage, queue_families) - } + CpuAccessibleBuffer::raw(device, mem::size_of::(), usage, queue_families) } } @@ -178,9 +176,7 @@ impl CpuAccessibleBuffer<[T]> { -> Result>, OomError> where I: IntoIterator> { - unsafe { - CpuAccessibleBuffer::raw(device, len * mem::size_of::(), usage, queue_families) - } + CpuAccessibleBuffer::raw(device, len * mem::size_of::(), usage, queue_families) } } diff --git a/vulkano/src/sync/event.rs b/vulkano/src/sync/event.rs index c0b4373c..5326c546 100644 --- a/vulkano/src/sync/event.rs +++ b/vulkano/src/sync/event.rs @@ -10,13 +10,10 @@ use std::mem; use std::ptr; use std::sync::Arc; -use std::sync::Mutex; -use std::sync::MutexGuard; use device::Device; use OomError; use Success; -use SynchronizedVulkanObject; use VulkanObject; use VulkanPointers; use check_errors;