Migrate from derive_more to thiserror

This commit is contained in:
Lennart
2024-09-19 15:38:57 +02:00
parent 436d6fd41c
commit 8e11e1aa0d
5 changed files with 8 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
use actix_web::{http::StatusCode, FromRequest, HttpRequest, ResponseError};
use derive_more::Display;
use futures_util::future::{err, ok, Ready};
use thiserror::Error;
#[derive(Debug, Display)]
#[derive(Error, Debug)]
#[error("Invalid Depth header")]
pub struct InvalidDepthHeader {}
impl ResponseError for InvalidDepthHeader {