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
|
|
@ -16,7 +16,6 @@ bv = "0.11.1"
|
|||
thiserror = "1.0.30"
|
||||
lzma-rs = "0.2.0"
|
||||
binrw = "0.8.0"
|
||||
parse-display = "0.5.3"
|
||||
static_assertions = "1.1.0"
|
||||
miette = "3.2.0"
|
||||
|
||||
|
|
|
|||
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