fix: all clippy warns

This commit is contained in:
Snowiiii committed 2024-08-04 00:40:27 +02:00
1 parent ae69bbc7f1
commit 19af3618cb
13 files changed
+44 -48

No files matched your search

+7 -1
View File
@@ -1,4 +1,4 @@
use fastnbt::{nbt, SerOpts};
use fastnbt::nbt;
pub const BLOCKS_AND_BIOMES: [u8; 2000] = [0x80; 2000];
pub const SKY_LIGHT_ARRAYS: [FixedArray<u8, 2048>; 26] = [FixedArray([0xff; 2048]); 26];
@@ -11,6 +11,12 @@ pub struct TestChunk {
pub heightmap: Vec<u8>,
}
impl Default for TestChunk {
fn default() -> Self {
Self::new()
}
}
impl TestChunk {
pub fn new() -> Self {
let bytes = fastnbt::to_bytes(&nbt!({"MOTION_BLOCKING": [L; 123, 256]})).unwrap();
+1 -1
View File
@@ -1,6 +1,6 @@
use std::{fs::File, path::Path};
use fastanvil::{complete, Chunk, Region};
use fastanvil::Region;
pub mod chunk;