From de29cb3925d47bd7b0d0110203580c3fe071bb1f Mon Sep 17 00:00:00 2001 From: Petr Gladkikh Date: Fri, 15 Nov 2024 00:23:30 +0400 Subject: [PATCH] Reduce number of assertions --- src/conversions/sample_rate.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/conversions/sample_rate.rs b/src/conversions/sample_rate.rs index a9d37b5..3ad3cd3 100644 --- a/src/conversions/sample_rate.rs +++ b/src/conversions/sample_rate.rs @@ -51,11 +51,8 @@ where let to = to.0; assert!(num_channels >= 1); - assert!(num_channels <= 128); assert!(from >= 1); - assert!(from <= 500_000); assert!(to >= 1); - assert!(to <= 500_000); // finding the greatest common divisor let gcd = {