cargo fmt

This commit is contained in:
Christof Petig 2022-01-30 18:13:36 +01:00
parent a98b9ad049
commit 66c431ba86

View File

@ -3,7 +3,7 @@
use crate::{
assets::{self, AssetExt},
lottery::{LootSpec},
lottery::LootSpec,
recipe::{default_recipe_book, RecipeInput},
trade::Good,
};
@ -601,10 +601,7 @@ impl TradePricing {
}
/// hierarchically combine and scale this loot table
pub fn lootspec_to_vec_item(
probability_sum: f32,
loot: &LootSpec<String>,
) -> Vec<(f32, String)> {
pub fn lootspec_to_vec_item(probability_sum: f32, loot: &LootSpec<String>) -> Vec<(f32, String)> {
ProbabilityFile::from(vec![(probability_sum, loot.clone())]).content
}
@ -613,7 +610,7 @@ pub fn lootspec_to_vec_item(
#[cfg(test)]
mod tests {
use crate::{
comp::inventory::trade_pricing::{TradePricing, lootspec_to_vec_item},
comp::inventory::trade_pricing::{lootspec_to_vec_item, TradePricing},
lottery::LootSpec,
trade::Good,
};