anvil: disable clippy lint for glium macros

This commit is contained in:
Victor Berger 2020-04-21 15:00:00 +02:00
parent ce1b7ae8e4
commit 61fecb44cf
1 changed files with 6 additions and 1 deletions

View File

@ -36,7 +36,12 @@ struct Vertex {
tex_coords: [f32; 2], tex_coords: [f32; 2],
} }
mod implement_vertex {
#![allow(clippy::unneeded_field_pattern)]
// Module to scope the clippy lint disabling
use super::Vertex;
implement_vertex!(Vertex, position, tex_coords); implement_vertex!(Vertex, position, tex_coords);
}
pub struct GliumDrawer<F: GLGraphicsBackend + 'static> { pub struct GliumDrawer<F: GLGraphicsBackend + 'static> {
display: GliumGraphicsBackend<F>, display: GliumGraphicsBackend<F>,