Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriTimoz committed Dec 28, 2023
1 parent 5ffcb51 commit c28869a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions minecraft-protocol/build/blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ pub fn generate_block_enum(data: serde_json::Value) {
raw_harvest_tools.push(
block
.harvest_tools
.clone()
.into_iter()
.map(|(k, _v)| k)
.clone().into_keys()
.collect(),
);
let mut material = block
Expand Down Expand Up @@ -427,7 +425,7 @@ const AIR_BLOCKS: [bool; {max_value}] = {air_blocks:?};
default_state_ids = blocks.iter().map(|b| b.default_state).collect::<Vec<_>>(),
item_ids = blocks
.iter()
.map(|b| b.drops.get(0).copied().unwrap_or(0))
.map(|b| b.drops.first().copied().unwrap_or(0))
.collect::<Vec<_>>(),
materials = materials,
resistances = blocks.iter().map(|b| b.resistance).collect::<Vec<_>>(),
Expand Down
2 changes: 0 additions & 2 deletions minecraft-server/src/entities/monsters/zombies.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use minecraft_protocol::network;

use super::*;

#[derive(Default)]
Expand Down

0 comments on commit c28869a

Please sign in to comment.