mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
remove parse-display
This commit is contained in:
parent
f22e79269d
commit
f585be2864
2 changed files with 8 additions and 3 deletions
10
src/data.rs
10
src/data.rs
|
|
@ -5,8 +5,8 @@ use binrw::io::SeekFrom;
|
|||
use binrw::{BinRead, BinResult, ReadOptions};
|
||||
use bitflags::bitflags;
|
||||
use bv::BitVec;
|
||||
use parse_display::Display;
|
||||
use std::fmt;
|
||||
use std::fmt::{Debug, Display, Formatter};
|
||||
use std::mem::size_of;
|
||||
use std::ops::{Add, Index};
|
||||
|
||||
|
|
@ -160,9 +160,15 @@ bitflags! {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Display, Clone)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Name(ArrayString<64>);
|
||||
|
||||
impl Display for Name {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
|
||||
Display::fmt(&self.0, f)
|
||||
}
|
||||
}
|
||||
|
||||
impl BinRead for Name {
|
||||
type Args = ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue