Merge pull request #586 from tomaka/fix-warnings

Fix warnings
This commit is contained in:
tomaka 2017-07-04 14:21:59 +02:00 committed by GitHub
commit a8dfc332cb
7 changed files with 2 additions and 14 deletions

View File

@ -30,7 +30,6 @@ use std::sync::Arc;
use std::sync::RwLock;
use std::sync::RwLockReadGuard;
use std::sync::RwLockWriteGuard;
use std::sync::TryLockError;
use buffer::BufferUsage;
use buffer::sys::BufferCreationError;
@ -48,11 +47,8 @@ use memory::CpuAccess as MemCpuAccess;
use memory::pool::AllocLayout;
use memory::pool::MemoryPool;
use memory::pool::MemoryPoolAlloc;
use memory::pool::StdMemoryPool;
use memory::pool::StdMemoryPoolAlloc;
use sync::AccessError;
use sync::AccessFlagBits;
use sync::PipelineStages;
use sync::Sharing;
use OomError;

View File

@ -14,7 +14,6 @@ use std::mem;
use std::sync::Arc;
use std::sync::Mutex;
use std::sync::MutexGuard;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;

View File

@ -124,8 +124,8 @@ mod tests {
let (device, queue) = gfx_dev_and_queue!();
let buffer = CpuAccessibleBuffer::from_iter(device.clone(), BufferUsage::transfer_destination(),
iter::once(queue.family()),
0 .. 100000).unwrap();
let data = (0 .. 65536).collect::<Vec<u8>>();
(0 .. 100000).map(|_| 0)).unwrap();
let data = (0 .. 65536).map(|_| 0).collect::<Vec<u8>>();
match check_update_buffer(&device, &buffer, &data[..]) {
Ok(_) => (),

View File

@ -9,7 +9,6 @@
use std::iter::Empty;
use std::sync::Arc;
use std::sync::atomic::AtomicBool;
use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;

View File

@ -12,10 +12,8 @@ use std::sync::Arc;
use device::Device;
use device::Queue;
use format::Format;
use format::FormatDesc;
use image::Dimensions;
use image::ImageDimensions;
use image::ImageInner;
use image::ImageLayout;
use image::ImageUsage;

View File

@ -16,11 +16,9 @@ use std::sync::atomic::Ordering;
use device::Device;
use device::Queue;
use format::ClearValue;
use format::Format;
use format::FormatDesc;
use format::FormatTy;
use image::Dimensions;
use image::ImageDimensions;
use image::ImageInner;
use image::ImageLayout;
use image::ImageUsage;

View File

@ -14,11 +14,9 @@ use format::ClearValue;
use format::Format;
use format::FormatDesc;
use image::Dimensions;
use image::ImageDimensions;
use image::ImageInner;
use image::ImageLayout;
use image::ViewType;
use image::sys::UnsafeImage;
use image::sys::UnsafeImageView;
use image::traits::ImageAccess;
use image::traits::ImageClearValue;