From 61fecb44cfcd3ab4cd9f2133baf64e93b2afd692 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Tue, 21 Apr 2020 15:00:00 +0200 Subject: [PATCH] anvil: disable clippy lint for glium macros --- anvil/src/glium_drawer.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/anvil/src/glium_drawer.rs b/anvil/src/glium_drawer.rs index 78de8d0..47c9e6e 100644 --- a/anvil/src/glium_drawer.rs +++ b/anvil/src/glium_drawer.rs @@ -36,7 +36,12 @@ struct Vertex { tex_coords: [f32; 2], } -implement_vertex!(Vertex, position, tex_coords); +mod implement_vertex { + #![allow(clippy::unneeded_field_pattern)] + // Module to scope the clippy lint disabling + use super::Vertex; + implement_vertex!(Vertex, position, tex_coords); +} pub struct GliumDrawer { display: GliumGraphicsBackend,