Skip to content

Commit

Permalink
cargo fmt pass
Browse files Browse the repository at this point in the history
  • Loading branch information
actioninja committed Mar 23, 2023
1 parent b78ad5c commit 4d00879
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions hypnagogic_core/src/config/blocks/cutters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ pub struct Animation {
pub struct SlicePoint(pub Map<Side, u32>);

impl SlicePoint {
#[must_use]
pub fn get(&self, key: Side) -> Option<u32> {
self.0.get(key).copied()
}
Expand Down
1 change: 1 addition & 0 deletions hypnagogic_core/src/operations/cutters/bitmask_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ impl BitmaskSlice {
assembled
}

#[must_use]
pub fn generate_debug_icons(&self, corners: &CornerPayload) -> Vec<NamedIcon> {
let mut out = vec![];
let mut corners_image =
Expand Down
1 change: 1 addition & 0 deletions hypnagogic_core/src/operations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ pub enum ProcessorPayload {
}

impl ProcessorPayload {
#[must_use]
pub fn from_icon(icon: Icon) -> Self {
Self::Single(Box::new(OutputImage::Dmi(icon)))
}
Expand Down
4 changes: 2 additions & 2 deletions hypnagogic_core/src/util/corners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl From<&str> for Side {
"south" => Self::South,
"east" => Self::East,
"west" => Self::West,
_ => panic!("Invalid side: {}", s),
_ => panic!("Invalid side: {s}"),
}
}
}
Expand Down Expand Up @@ -121,7 +121,7 @@ impl From<&str> for CornerType {
"horizontal" => Self::Horizontal,
"vertical" => Self::Vertical,
"flat" => Self::Flat,
_ => panic!("Invalid String: {}", value),
_ => panic!("Invalid String: {value}"),
}
}
}
Expand Down

0 comments on commit 4d00879

Please sign in to comment.