From 2ce185959bfa23beb74a2da03bf80a503b25f50a Mon Sep 17 00:00:00 2001 From: maik klein Date: Sun, 1 Jan 2017 08:52:08 +0100 Subject: [PATCH] CamelCase warning for vk_function --- src/extensions/win32_surface.rs | 1 - src/vk.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/win32_surface.rs b/src/extensions/win32_surface.rs index cd58bd9..386b454 100644 --- a/src/extensions/win32_surface.rs +++ b/src/extensions/win32_surface.rs @@ -15,7 +15,6 @@ pub struct Win32Surface { win32_surface_fn: vk::Win32SurfaceFn, } - impl Win32Surface { pub fn new(entry: &Entry, instance: &Instance) -> Result> { let surface_fn = vk::Win32SurfaceFn::load(|name| { diff --git a/src/vk.rs b/src/vk.rs index de7a75f..d85db6b 100644 --- a/src/vk.rs +++ b/src/vk.rs @@ -3638,6 +3638,7 @@ pub mod types { // FIX: Need better error handling for extensions macro_rules! vk_functions { ($struct_name: ident, $($raw_name: expr, $name: ident ($($param_name: ident: $param: ty),*,) -> $ret: ty;)+) => { + #[allow(non_camel_case_types)] pub struct $struct_name{ $( $name: extern "system" fn ($($param_name: $param),*) -> $ret,