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

remove miette

This commit is contained in:
Robin Appelman 2022-02-20 22:12:47 +01:00
commit 8da1ebc839
3 changed files with 4 additions and 8 deletions

View file

@ -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),