cargo fmt

This commit is contained in:
Snowiiii committed 2024-08-14 21:37:27 +02:00
1 parent 5f8cbdbba6
commit 6485c99167
9 files changed
+36 -32

No files matched your search

+1 -1
View File
@@ -4,5 +4,5 @@ pub const WORLD_HEIGHT: usize = 384;
pub const WORLD_Y_START_AT: i32 = -64;
pub const DIRECT_PALETTE_BITS: u32 = 15;
mod block_registry;
pub mod radial_chunk_iterator;
mod world;
pub mod radial_chunk_iterator;
+1 -1
View File
@@ -56,4 +56,4 @@ impl Iterator for RadialIterator {
self.steps_taken += 1;
Some(result)
}
}
}
+5 -1
View File
@@ -89,7 +89,11 @@ impl Level {
region_file_path.push(format!("r.{}.{}.mca", region.0, region.1));
// return different error when file is not found (because that means that the chunks have just not been generated yet)
let mut region_file = match std::fs::File::options().read(true).write(false).open(&region_file_path) {
let mut region_file = match std::fs::File::options()
.read(true)
.write(false)
.open(&region_file_path)
{
Ok(f) => f,
Err(err) => match err.kind() {
std::io::ErrorKind::NotFound => {