Fix unused code / imports in the examples

This commit is contained in:
Gabriel Majeri 2017-06-20 06:53:53 +03:00
parent 0540af70d8
commit 9d2c028699
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,6 @@
// notice may not be copied, modified, or distributed except
// according to those terms.
#[macro_use]
extern crate vulkano;
use vulkano::device::{Device, DeviceExtensions};

View File

@ -17,6 +17,8 @@
// and that you want to learn Vulkan. This means that for example it won't go into details about
// what a vertex or a shader is.
// For the purpose of this example all unused code is allowed.
#![allow(dead_code)]
// The `vulkano` crate is the main crate that you must use to use Vulkan.
#[macro_use]