Skip to content

Commit

Permalink
fix: clippy warns
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Dec 18, 2024
1 parent 60c1c29 commit 2f089a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pumpkin-world/src/chunk/anvil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use flate2::bufread::{GzDecoder, GzEncoder, ZlibDecoder, ZlibEncoder};

use crate::{
block::block_registry::BLOCK_ID_TO_REGISTRY_ID, chunk::ChunkWritingError, level::LevelFolder,
WORLD_LOWEST_Y,
};

use super::{
Expand Down Expand Up @@ -400,7 +399,7 @@ impl AnvilChunkFormat {
*v,
(
BLOCK_ID_TO_REGISTRY_ID
.get(&v)
.get(v)
.expect("Tried saving a block which does not exist."),
i,
),
Expand Down
4 changes: 2 additions & 2 deletions pumpkin-world/src/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ impl Level {
region_folder,
},
seed,
chunk_reader: Arc::new(AnvilChunkFormat::default()),
chunk_writer: Arc::new(AnvilChunkFormat::default()),
chunk_reader: Arc::new(AnvilChunkFormat),
chunk_writer: Arc::new(AnvilChunkFormat),
loaded_chunks: Arc::new(DashMap::new()),
chunk_watchers: Arc::new(DashMap::new()),
}
Expand Down

0 comments on commit 2f089a0

Please sign in to comment.