mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2026-05-05 20:26:26 +02:00
f fmt
This commit is contained in:
parent
7fac1193ab
commit
5a94f5b648
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user