mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2026-05-05 20:26:26 +02:00
f unwrap you can't refuse
This commit is contained in:
parent
5a94f5b648
commit
88f127014f
@ -118,7 +118,7 @@ fn get_weighted_header(
|
||||
if weights.len() < 2 {
|
||||
continue;
|
||||
}
|
||||
f32::from_str(weights[1]).unwrap_or_else(|_| 0.0)
|
||||
f32::from_str(weights[1]).unwrap_or(0.0)
|
||||
} else {
|
||||
1.0
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user