Fix clippy::module_inception: rename nested modules palette/palette->palette_impl, chunk/chunk->chunk_impl, region/region->region_impl, world/world->world_impl
This commit is contained in:
parent
2419b603c1
commit
5789850310
12 changed files with 13 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use super::chunk::{Chunk, ChunkSection};
|
||||
use super::chunk_impl::{Chunk, ChunkSection};
|
||||
|
||||
impl Chunk {
|
||||
/// Serialize this chunk back to an NBT Compound tag.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
mod chunk;
|
||||
mod chunk_impl;
|
||||
mod chunk_write;
|
||||
|
||||
pub use chunk::*;
|
||||
pub use chunk_impl::*;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
mod region;
|
||||
mod region_impl;
|
||||
mod region_write;
|
||||
|
||||
pub use region::*;
|
||||
pub use region_impl::*;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::compression::{self, CompressionType};
|
||||
|
||||
use super::region::{Region, Result};
|
||||
use super::region_impl::{Region, Result};
|
||||
|
||||
impl Region {
|
||||
/// Serialize region back to .mca bytes.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
mod palette;
|
||||
mod palette_impl;
|
||||
mod palette_io;
|
||||
|
||||
pub use palette::*;
|
||||
pub use palette_impl::*;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use std::collections::HashMap;
|
||||
use terrafier_nbt::Tag;
|
||||
|
||||
use super::palette::{BlockPalette, BlockState};
|
||||
use super::palette_impl::{BlockPalette, BlockState};
|
||||
|
||||
impl BlockState {
|
||||
/// Parse from `TAG_Compound` with `"Name"` and optional `"Properties"`.
|
||||
|
|
@ -73,7 +73,7 @@ impl BlockPalette {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::super::palette::{BlockPalette, BlockState};
|
||||
use super::super::palette_impl::{BlockPalette, BlockState};
|
||||
use terrafier_nbt::Tag;
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue