1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 10:44:07 +02:00

remove global allows

This commit is contained in:
Robin Appelman 2020-06-26 19:27:18 +02:00
commit 6357309f25
3 changed files with 1 additions and 9 deletions

View file

@ -38,10 +38,6 @@ impl<'a> BspFile<'a> {
}) })
} }
pub fn directories(&self) -> &Directories {
&self.directories
}
pub fn header(&self) -> &Header { pub fn header(&self) -> &Header {
&self.header &self.header
} }
@ -92,6 +88,7 @@ impl<'a> BspFile<'a> {
} }
} }
#[allow(dead_code)]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
pub enum LumpType { pub enum LumpType {
Entities, Entities,

View file

@ -379,8 +379,6 @@ pub struct Face {
static_assertions::const_assert_eq!(size_of::<Face>(), 56); static_assertions::const_assert_eq!(size_of::<Face>(), 56);
const LIGHTMAP_SIZE: usize = 128;
#[derive(Default, Clone, Copy, BinRead, Debug)] #[derive(Default, Clone, Copy, BinRead, Debug)]
pub struct LightColor { pub struct LightColor {
r: u8, r: u8,

View file

@ -1,6 +1,3 @@
#![allow(dead_code)]
#![allow(unreachable_code)]
mod bspfile; mod bspfile;
mod data; mod data;
mod reader; mod reader;