From c34f531546233e9360b68c1da6a272d847f4a354 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 12 Feb 2023 20:20:36 +0100 Subject: [PATCH] world/section: temporarily rename PaletteSectionBiomes fields These fields are unused for now. Add an underscore to supress linter warnings. --- src/world/section.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/world/section.rs b/src/world/section.rs index 281579b..265b393 100644 --- a/src/world/section.rs +++ b/src/world/section.rs @@ -22,9 +22,9 @@ pub trait Section { #[derive(Debug)] pub struct PaletteSectionBiomes<'a> { - biomes: Option<&'a fastnbt::LongArray>, - palette: &'a Vec, - bits: u8, + _biomes: Option<&'a fastnbt::LongArray>, + _palette: &'a Vec, + _bits: u8, } impl<'a> PaletteSectionBiomes<'a> { @@ -40,9 +40,9 @@ impl<'a> PaletteSectionBiomes<'a> { } Ok(PaletteSectionBiomes { - biomes, - palette, - bits, + _biomes: biomes, + _palette: palette, + _bits: bits, }) } }