diff --git a/src/builder.rs b/src/builder.rs index 3a7c798..4c5b6a2 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -190,7 +190,7 @@ impl MazeBuilder { Ok(maze) } } -pub(crate) fn create_hex_maze(radius: u16) -> HexMaze { +pub fn create_hex_maze(radius: u16) -> HexMaze { let mut maze = HexMaze::new(); let radius = i32::from(radius); diff --git a/src/lib.rs b/src/lib.rs index 2fb8c48..f0f9145 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,14 +51,14 @@ //!``` mod builder; mod generator; -mod hex_maze; -mod hex_tile; +mod maze; +mod tile; mod walls; pub use builder::{MazeBuilder, MazeBuilderError}; pub use generator::GeneratorType; -pub use hex_maze::HexMaze; -pub use hex_tile::HexTile; +pub use maze::HexMaze; +pub use tile::HexTile; pub use walls::Walls; /// Prelude module containing commonly used types diff --git a/src/hex_maze.rs b/src/maze.rs similarity index 99% rename from src/hex_maze.rs rename to src/maze.rs index e41957a..204b587 100644 --- a/src/hex_maze.rs +++ b/src/maze.rs @@ -12,6 +12,7 @@ use std::ops::{Deref, DerefMut}; /// /// This struct stores the layout of a hexagonal maze, including the positions /// of tiles and their associated walls. +#[allow(clippy::module_name_repetitions)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "bevy_reflect", derive(Reflect))] #[cfg_attr(feature = "bevy", derive(Component))] diff --git a/src/hex_tile.rs b/src/tile.rs similarity index 99% rename from src/hex_tile.rs rename to src/tile.rs index 863ce91..85cd3fe 100644 --- a/src/hex_tile.rs +++ b/src/tile.rs @@ -9,6 +9,7 @@ use std::fmt::Display; /// Represents a single hexagonal tile in the maze /// /// Each tile has a position and a set of walls defining its boundaries. +#[allow(clippy::module_name_repetitions)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(feature = "bevy_reflect", derive(Reflect))] #[cfg_attr(feature = "bevy", derive(Component))]