WIP typechecks

This commit is contained in:
Dominik Werder
2024-11-05 16:15:32 +01:00
parent 9fd27332c3
commit db6e55bcb6
8 changed files with 122 additions and 77 deletions

View File

@@ -19,11 +19,10 @@ chrono = { version = "0.4.26", features = ["serde"] }
url = "2.4.0"
regex = "1.9.1"
http = "1.0.0"
hyper = "1.0.1"
#hyper = "1.0.1"
thiserror = "=0.0.1"
#thiserror = "1"
anyhow = "1.0"
tokio = "1"
#tokio = "1"
[patch.crates-io]
thiserror = { git = "https://github.com/dominikwerder/thiserror.git", branch = "cstm" }

View File

@@ -436,12 +436,6 @@ impl From<anyhow::Error> for Error {
}
}
impl From<tokio::task::JoinError> for Error {
fn from(k: tokio::task::JoinError) -> Self {
Self::from_string(format!("{k}"))
}
}
impl From<http::Error> for Error {
fn from(k: http::Error) -> Self {
Self::from_string(k)
@@ -454,12 +448,6 @@ impl From<http::uri::InvalidUri> for Error {
}
}
impl From<hyper::Error> for Error {
fn from(k: hyper::Error) -> Self {
Self::from_string(k)
}
}
#[derive(Debug, Serialize, Deserialize)]
pub struct PublicError {
reason: Option<Reason>,