From 2187aa96ab9fdb31a425db651f7b7de18e3b2f59 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 7 Apr 2023 13:33:39 +0200 Subject: [PATCH] Fix formatting in formatters.rs Rustfmt changed the way it formats this a while back. --- src/formatters.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/formatters.rs b/src/formatters.rs index c023f370..032e256e 100644 --- a/src/formatters.rs +++ b/src/formatters.rs @@ -114,7 +114,10 @@ pub fn v2s_f32_panning() -> Arc String + Send + Sync> { pub fn s2v_f32_panning() -> Arc Option + Send + Sync> { Arc::new(|string| { let string = string.trim(); - let cleaned_string = string.trim_end_matches(&[' ', 'l', 'L', 'c', 'C', 'r', 'R']).parse().ok(); + let cleaned_string = string + .trim_end_matches(&[' ', 'l', 'L', 'c', 'C', 'r', 'R']) + .parse() + .ok(); match string.chars().last()?.to_uppercase().next()? { 'L' => cleaned_string.map(|x: f32| x / -100.0), 'C' => Some(0.0),