diff --git a/src/audio.rs b/src/audio.rs index 9f13b537..79971d39 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -1,5 +1,7 @@ //! Loading and playing sounds. +#![allow(dead_code)] + use crate::{file::load_file, get_context, Error}; use std::sync::Arc; diff --git a/src/quad_gl.rs b/src/quad_gl.rs index b8c15315..0783c859 100644 --- a/src/quad_gl.rs +++ b/src/quad_gl.rs @@ -198,10 +198,6 @@ mod snapshotter_shader { uniforms: UniformBlockLayout { uniforms: vec![] }, } } - - #[repr(C)] - #[derive(Debug)] - pub struct Uniforms {} } impl MagicSnapshotter { diff --git a/src/ui/cursor.rs b/src/ui/cursor.rs index 8e01e2b0..1e586f3c 100644 --- a/src/ui/cursor.rs +++ b/src/ui/cursor.rs @@ -8,6 +8,7 @@ use crate::math::{Rect, Vec2}; #[derive(Clone, Debug)] pub struct Scroll { pub scroll: Vec2, + #[allow(dead_code)] pub dragging_x: bool, pub dragging_y: bool, pub rect: Rect, diff --git a/src/ui/render/painter.rs b/src/ui/render/painter.rs index 542fd739..5b514370 100644 --- a/src/ui/render/painter.rs +++ b/src/ui/render/painter.rs @@ -556,6 +556,7 @@ impl Default for Alignment { #[derive(Clone, Debug)] pub struct LabelParams { pub color: Color, + #[allow(dead_code)] pub alignment: Alignment, }