1
0
Fork 0

Fix clippy lints

This commit is contained in:
Robbert van der Helm 2022-02-04 18:42:42 +01:00
parent 2c0b797c40
commit 4c0031d7b3
2 changed files with 5 additions and 5 deletions

View file

@ -284,25 +284,25 @@ mod tests {
#[test] #[test]
fn range_normalize_float() { fn range_normalize_float() {
let range = make_skewed_float_range(Range::skew_factor(-2.0)); 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] #[test]
fn range_normalize_int() { fn range_normalize_int() {
let range = make_skewed_int_range(Range::skew_factor(-2.0)); 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] #[test]
fn range_unnormalize_float() { fn range_unnormalize_float() {
let range = make_skewed_float_range(Range::skew_factor(-2.0)); 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] #[test]
fn range_unnormalize_int() { fn range_unnormalize_int() {
let range = make_skewed_int_range(Range::skew_factor(-2.0)); 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] #[test]

View file

@ -3,7 +3,7 @@ use std::fs;
use std::path::Path; use std::path::Path;
use std::process::Command; use std::process::Command;
const USAGE_STRING: &'static str = "Usage: cargo xtask bundle <target> [--release] [--bundle-vst3]"; const USAGE_STRING: &str = "Usage: cargo xtask bundle <target> [--release] [--bundle-vst3]";
fn main() -> Result<()> { fn main() -> Result<()> {
let project_root = Path::new(env!("CARGO_MANIFEST_DIR")) let project_root = Path::new(env!("CARGO_MANIFEST_DIR"))