juliancoffee prefers this style

This commit is contained in:
Christof Petig 2022-01-31 22:19:21 +01:00
parent f4f1b5c77b
commit 080444fc8b

View File

@ -99,7 +99,7 @@ impl From<Vec<(f32, LootSpec<String>)>> for ProbabilityFile {
let rescale = if content.is_empty() {
1.0
} else {
1.0 / content.iter().fold(0.0, |s, e| s + e.0)
1.0 / content.iter().map(|e| e.0).sum::<f32>()
};
Self {
content: content