Skip to content

Commit

Permalink
Fix clippy warnings for keyset-drawing with no output format enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
staticintlucas committed Jan 2, 2024
1 parent fe37dff commit 4486c43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions keyset-drawing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ use geom::{Point, Rect, Size};
use key::Key;
use profile::Profile;

#[allow(unused_imports)] // Path is unused if no format is enabled, but who would do that?
pub(crate) use imp::{KeyDrawing, Path};

#[derive(Debug, Clone)]
#[allow(dead_code)] // Struct fields are unused if no format is enabled, but who would do that?
pub struct Drawing {
bounds: Rect,
keys: Vec<imp::KeyDrawing>,
keys: Vec<KeyDrawing>,
scale: f64,
}

Expand All @@ -49,7 +51,7 @@ impl Drawing {

let keys = keys
.iter()
.map(|key| imp::KeyDrawing::new(key, options))
.map(|key| KeyDrawing::new(key, options))
.collect();

Self {
Expand Down

0 comments on commit 4486c43

Please sign in to comment.