WIP typechecks
This commit is contained in:
@@ -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" }
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user