mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 03:32:15 +00:00
Migrate from derive_more to thiserror
This commit is contained in:
@@ -7,7 +7,6 @@ edition = "2021"
|
||||
actix-web = "4.9"
|
||||
anyhow = "1.0"
|
||||
async-trait = "0.1"
|
||||
derive_more = "1.0"
|
||||
futures-util = "0.3"
|
||||
quick-xml = { version = "0.36", features = [
|
||||
"serde",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user