diff --git a/examples/src/bin/debug.rs b/examples/src/bin/debug.rs index c03f648e..2080e517 100644 --- a/examples/src/bin/debug.rs +++ b/examples/src/bin/debug.rs @@ -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}; diff --git a/examples/src/bin/triangle.rs b/examples/src/bin/triangle.rs index 38f2f1de..30af6442 100644 --- a/examples/src/bin/triangle.rs +++ b/examples/src/bin/triangle.rs @@ -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]