mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
clippy is right,
but I don't want to rearrange print_sorted (test). so reduce overall strictness
This commit is contained in:
parent
080444fc8b
commit
42faef9ab0
@ -1,5 +1,3 @@
|
|||||||
#![warn(clippy::pedantic)]
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
assets::{self, AssetExt},
|
assets::{self, AssetExt},
|
||||||
lottery::LootSpec,
|
lottery::LootSpec,
|
||||||
@ -651,7 +649,7 @@ mod tests {
|
|||||||
.with_max_level(Level::ERROR)
|
.with_max_level(Level::ERROR)
|
||||||
.with_env_filter(EnvFilter::from_default_env())
|
.with_env_filter(EnvFilter::from_default_env())
|
||||||
.try_init()
|
.try_init()
|
||||||
.unwrap_or_else(|_| ());
|
.unwrap_or(());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -704,7 +702,7 @@ mod tests {
|
|||||||
let loot_table = vec![(1.0, item("wow")), (1.0, item("nice"))];
|
let loot_table = vec![(1.0, item("wow")), (1.0, item("nice"))];
|
||||||
|
|
||||||
let probability: ProbabilityFile = loot_table.into();
|
let probability: ProbabilityFile = loot_table.into();
|
||||||
assert!(normalized(&probability))
|
assert!(normalized(&probability));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -715,7 +713,7 @@ mod tests {
|
|||||||
table("common.loot_tables.creature.quad_medium.catoblepas"),
|
table("common.loot_tables.creature.quad_medium.catoblepas"),
|
||||||
)];
|
)];
|
||||||
let probability: ProbabilityFile = loot_table.into();
|
let probability: ProbabilityFile = loot_table.into();
|
||||||
assert!(normalized(&probability))
|
assert!(normalized(&probability));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -729,7 +727,7 @@ mod tests {
|
|||||||
(1.0, table("common.loot_tables.creature.quad_medium.gentle")),
|
(1.0, table("common.loot_tables.creature.quad_medium.gentle")),
|
||||||
];
|
];
|
||||||
let probability: ProbabilityFile = loot_table.into();
|
let probability: ProbabilityFile = loot_table.into();
|
||||||
assert!(normalized(&probability))
|
assert!(normalized(&probability));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -737,6 +735,6 @@ mod tests {
|
|||||||
let quantity = |asset: &str, a, b| LootSpec::ItemQuantity(asset.to_owned(), a, b);
|
let quantity = |asset: &str, a, b| LootSpec::ItemQuantity(asset.to_owned(), a, b);
|
||||||
let loot_table = vec![(1.0, quantity("such", 3, 5)), (1.0, quantity("much", 5, 9))];
|
let loot_table = vec![(1.0, quantity("such", 3, 5)), (1.0, quantity("much", 5, 9))];
|
||||||
let probability: ProbabilityFile = loot_table.into();
|
let probability: ProbabilityFile = loot_table.into();
|
||||||
assert!(normalized(&probability))
|
assert!(normalized(&probability));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user