Merge pull request #202 from tomaka/fix-warnings

Fix warnings
This commit is contained in:
tomaka 2016-07-27 12:49:19 +02:00 committed by GitHub
commit 451fb9c70f
2 changed files with 2 additions and 9 deletions

View File

@ -122,9 +122,7 @@ impl<T> CpuAccessibleBuffer<T> {
-> Result<Arc<CpuAccessibleBuffer<T>>, OomError>
where I: IntoIterator<Item = QueueFamily<'a>>
{
unsafe {
CpuAccessibleBuffer::raw(device, mem::size_of::<T>(), usage, queue_families)
}
CpuAccessibleBuffer::raw(device, mem::size_of::<T>(), usage, queue_families)
}
}
@ -178,9 +176,7 @@ impl<T> CpuAccessibleBuffer<[T]> {
-> Result<Arc<CpuAccessibleBuffer<[T]>>, OomError>
where I: IntoIterator<Item = QueueFamily<'a>>
{
unsafe {
CpuAccessibleBuffer::raw(device, len * mem::size_of::<T>(), usage, queue_families)
}
CpuAccessibleBuffer::raw(device, len * mem::size_of::<T>(), usage, queue_families)
}
}

View File

@ -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;