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,11 +122,9 @@ 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)
}
}
}
impl<T> CpuAccessibleBuffer<[T]> {
/// Builds a new buffer that contains an array `T`. The initial data comes from an iterator
@ -178,11 +176,9 @@ 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)
}
}
}
impl<T: ?Sized> CpuAccessibleBuffer<T> {
/// Builds a new buffer without checking the size.

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;