diff --git a/src/param/range.rs b/src/param/range.rs index 4646ead6..dda66cc0 100644 --- a/src/param/range.rs +++ b/src/param/range.rs @@ -284,25 +284,25 @@ mod tests { #[test] fn range_normalize_float() { let range = make_skewed_float_range(Range::skew_factor(-2.0)); - assert_eq!(range.normalize(17.5), 0.9306048591020996); + assert_eq!(range.normalize(17.5), 0.9306049); } #[test] fn range_normalize_int() { let range = make_skewed_int_range(Range::skew_factor(-2.0)); - assert_eq!(range.normalize(-5), 0.7071067811865476); + assert_eq!(range.normalize(-5), 0.70710677); } #[test] fn range_unnormalize_float() { let range = make_skewed_float_range(Range::skew_factor(-2.0)); - assert_eq!(range.unnormalize(0.9306048591020996), 17.5); + assert_eq!(range.unnormalize(0.9306049), 17.5); } #[test] fn range_unnormalize_int() { let range = make_skewed_int_range(Range::skew_factor(-2.0)); - assert_eq!(range.unnormalize(0.7071067811865476), -5); + assert_eq!(range.unnormalize(0.70710677), -5); } #[test] diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 146adfb4..ca0487c8 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -3,7 +3,7 @@ use std::fs; use std::path::Path; use std::process::Command; -const USAGE_STRING: &'static str = "Usage: cargo xtask bundle [--release] [--bundle-vst3]"; +const USAGE_STRING: &str = "Usage: cargo xtask bundle [--release] [--bundle-vst3]"; fn main() -> Result<()> { let project_root = Path::new(env!("CARGO_MANIFEST_DIR"))