From 5a94f5b6482f80777571c04050c008c839d59ad2 Mon Sep 17 00:00:00 2001 From: jrconlin Date: Thu, 17 Oct 2019 18:10:39 -0700 Subject: [PATCH] f fmt --- src/web/extractors.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/web/extractors.rs b/src/web/extractors.rs index a44db823..ccdbf3e7 100644 --- a/src/web/extractors.rs +++ b/src/web/extractors.rs @@ -116,8 +116,8 @@ fn get_weighted_header( let weights: Vec<&str> = opt_weight[1].split('=').collect(); // if the weight is malformed, ignore this choice. if weights.len() < 2 { - continue - } + continue; + } f32::from_str(weights[1]).unwrap_or_else(|_| 0.0) } else { 1.0 @@ -1630,7 +1630,6 @@ mod tests { "text/plain", ); assert_eq!(selected, "text/plain".to_owned()); - } #[test]