Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion steel-core/src/chunk/paletted_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl BlockPalette {
}
Self::Building(cube) => {
let mut count: u16 = 0;
for slab in cube.iter() {
for slab in cube {
for row in slab {
for v in row {
if v.0 != 0 {
Expand Down
2 changes: 1 addition & 1 deletion steel-core/src/chunk_saver/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl RegionHeader {
#[must_use]
pub fn to_bytes(&self) -> Vec<u8> {
let mut bytes = Vec::with_capacity(CHUNK_TABLE_SIZE);
for entry in self.entries.iter() {
for entry in &self.entries {
bytes.extend_from_slice(&entry.to_bytes());
}
bytes
Expand Down
2 changes: 1 addition & 1 deletion steel-core/src/chunk_saver/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2820,7 +2820,7 @@ impl ChunkStorage {
.map(|&idx| Self::resolve_block_state(chunk, idx))
.collect();
let mut cube = Box::new([[[BlockStateId(0); 16]; 16]; 16]);
for plane in cube.iter_mut() {
for plane in &mut cube {
for row in plane {
for cell in row {
*cell = runtime_palette[indices.next().expect(
Expand Down
Loading