Fix all clippy warnings: collapsible_if, for_kv_map, vec_init_then_push, let_and_return, manual_div_ceil, useless_conversion, needless_borrows, manual_is_multiple_of, new_without_default, unnecessary_lazy_evaluations
This commit is contained in:
parent
2d2057ee87
commit
887a37e64c
9 changed files with 49 additions and 53 deletions
|
|
@ -32,7 +32,7 @@ fn test_generate_flat_heightmap() {
|
|||
.unwrap();
|
||||
let loaded: World = terrafier_core::io::load_binary(Path::new("/tmp/test_flat.tfw")).unwrap();
|
||||
if let Some(dim) = loaded.dimensions.first() {
|
||||
for (_, tile) in &dim.tiles {
|
||||
for tile in dim.tiles.values() {
|
||||
for z in 0..128 {
|
||||
for x in 0..128 {
|
||||
assert_eq!(tile.get_height(x, z), 64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue