mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
cargo fmt
This commit is contained in:
parent
a98b9ad049
commit
66c431ba86
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user