Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed Jul 23, 2024
1 parent 7831601 commit 4719fdb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/audio.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Loading and playing sounds.

#![allow(dead_code)]

use crate::{file::load_file, get_context, Error};
use std::sync::Arc;

Expand Down
4 changes: 0 additions & 4 deletions src/quad_gl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ mod snapshotter_shader {
uniforms: UniformBlockLayout { uniforms: vec![] },
}
}

#[repr(C)]
#[derive(Debug)]
pub struct Uniforms {}
}

impl MagicSnapshotter {
Expand Down
1 change: 1 addition & 0 deletions src/ui/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/ui/render/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ impl Default for Alignment {
#[derive(Clone, Debug)]
pub struct LabelParams {
pub color: Color,
#[allow(dead_code)]
pub alignment: Alignment,
}

Expand Down

0 comments on commit 4719fdb

Please sign in to comment.