mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
remove miette
This commit is contained in:
parent
5e918a397b
commit
8da1ebc839
3 changed files with 4 additions and 8 deletions
|
|
@ -80,7 +80,7 @@ struct RawDisplacementSubNeighbour {
|
|||
|
||||
#[test]
|
||||
fn test_sub_neighbour_bytes() {
|
||||
test_read_bytes::<RawDisplacementSubNeighbour>();
|
||||
super::test_read_bytes::<RawDisplacementSubNeighbour>();
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
@ -142,7 +142,7 @@ static_assertions::const_assert_eq!(size_of::<DisplacementCornerNeighbour>(), 10
|
|||
|
||||
#[test]
|
||||
fn test_corner_neighbour_bytes() {
|
||||
test_read_bytes::<DisplacementCornerNeighbour>();
|
||||
super::test_read_bytes::<DisplacementCornerNeighbour>();
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, BinRead)]
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
use crate::data::*;
|
||||
use miette::Diagnostic;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
#[derive(Debug, Error)]
|
||||
pub enum BspError {
|
||||
#[error("unexpected magic numbers or version")]
|
||||
#[diagnostic(help("Ensure the loaded file is a valve bsp"))]
|
||||
UnexpectedHeader(Header),
|
||||
#[error("bsp lump is out of bounds of the bsp file")]
|
||||
LumpOutOfBounds(LumpEntry),
|
||||
|
|
@ -56,7 +54,7 @@ impl From<lzma_rs::error::Error> for BspError {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Error, Diagnostic)]
|
||||
#[derive(Debug, Error)]
|
||||
pub enum StringError {
|
||||
#[error(transparent)]
|
||||
NonUTF8(#[from] std::str::Utf8Error),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue