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
|
|
@ -18,13 +18,11 @@ thiserror = "1.0.30"
|
||||||
lzma-rs = "0.2.0"
|
lzma-rs = "0.2.0"
|
||||||
binrw = "0.8.0"
|
binrw = "0.8.0"
|
||||||
static_assertions = "1.1.0"
|
static_assertions = "1.1.0"
|
||||||
miette = "3.2.0"
|
|
||||||
num_enum = "0.5.6"
|
num_enum = "0.5.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
obj = "0.10"
|
obj = "0.10"
|
||||||
main_error = "0.1.0"
|
main_error = "0.1.0"
|
||||||
miette = { version = "3.2.0", features = ["fancy"] }
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
bench = []
|
bench = []
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ struct RawDisplacementSubNeighbour {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_sub_neighbour_bytes() {
|
fn test_sub_neighbour_bytes() {
|
||||||
test_read_bytes::<RawDisplacementSubNeighbour>();
|
super::test_read_bytes::<RawDisplacementSubNeighbour>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|
@ -142,7 +142,7 @@ static_assertions::const_assert_eq!(size_of::<DisplacementCornerNeighbour>(), 10
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_corner_neighbour_bytes() {
|
fn test_corner_neighbour_bytes() {
|
||||||
test_read_bytes::<DisplacementCornerNeighbour>();
|
super::test_read_bytes::<DisplacementCornerNeighbour>();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, BinRead)]
|
#[derive(Debug, Clone, BinRead)]
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
use crate::data::*;
|
use crate::data::*;
|
||||||
use miette::Diagnostic;
|
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Debug, Error, Diagnostic)]
|
#[derive(Debug, Error)]
|
||||||
pub enum BspError {
|
pub enum BspError {
|
||||||
#[error("unexpected magic numbers or version")]
|
#[error("unexpected magic numbers or version")]
|
||||||
#[diagnostic(help("Ensure the loaded file is a valve bsp"))]
|
|
||||||
UnexpectedHeader(Header),
|
UnexpectedHeader(Header),
|
||||||
#[error("bsp lump is out of bounds of the bsp file")]
|
#[error("bsp lump is out of bounds of the bsp file")]
|
||||||
LumpOutOfBounds(LumpEntry),
|
LumpOutOfBounds(LumpEntry),
|
||||||
|
|
@ -56,7 +54,7 @@ impl From<lzma_rs::error::Error> for BspError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Error, Diagnostic)]
|
#[derive(Debug, Error)]
|
||||||
pub enum StringError {
|
pub enum StringError {
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
NonUTF8(#[from] std::str::Utf8Error),
|
NonUTF8(#[from] std::str::Utf8Error),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue