Skip to content

Commit

Permalink
fix: rustfmt formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrix126 committed Feb 26, 2024
1 parent 56cee0d commit 55baa70
Show file tree
Hide file tree
Showing 18 changed files with 10,659 additions and 8,151 deletions.
538 changes: 274 additions & 264 deletions src/constants.rs

Large diffs are not rendered by default.

2,259 changes: 1,214 additions & 1,045 deletions src/disk.rs

Large diffs are not rendered by default.

56 changes: 0 additions & 56 deletions src/ferris.rs

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/free.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ use crate::constants::*;
#[inline(never)]
// Clamp the scaling resolution `f32` to a known good `f32`.
pub fn clamp_scale(scale: f32) -> f32 {
// Make sure it is finite.
if !scale.is_finite() {
return APP_DEFAULT_SCALE;
}
// Make sure it is finite.
if !scale.is_finite() {
return APP_DEFAULT_SCALE;
}

// Clamp between valid range.
scale.clamp(APP_MIN_SCALE, APP_MAX_SCALE)
}
// Clamp between valid range.
scale.clamp(APP_MIN_SCALE, APP_MAX_SCALE)
}
Loading

0 comments on commit 55baa70

Please sign in to comment.