Remove old dependency

This commit is contained in:
Dominik Werder
2024-11-21 10:30:13 +01:00
parent 197822ef5f
commit 3342141550
2 changed files with 5 additions and 15 deletions

View File

@@ -13,8 +13,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_cbor = "0.11.2"
rmp-serde = "1.1.1"
async-channel = "1.9.0"
async_channel_2 = { package = "async-channel", version = "2.3.1" }
async-channel = "2.3.1"
chrono = { version = "0.4.26", features = ["serde"] }
url = { version = "2.5.3", default-features = false }
regex = "1.9.1"

View File

@@ -340,18 +340,6 @@ impl From<async_channel::RecvError> for Error {
}
}
impl<T> From<async_channel_2::SendError<T>> for Error {
fn from(k: async_channel_2::SendError<T>) -> Self {
Self::from_string(k)
}
}
impl From<async_channel_2::RecvError> for Error {
fn from(k: async_channel_2::RecvError) -> Self {
Self::from_string(k)
}
}
impl From<chrono::format::ParseError> for Error {
fn from(k: chrono::format::ParseError) -> Self {
Self::from_string(k)
@@ -562,7 +550,10 @@ mod test {
#[test]
fn error_handle_a_00() {
assert_eq!(format!("{}", SomeErrorEnumA::BadCase), "SomeErrorEnumA::BadCase");
assert_eq!(
format!("{}", SomeErrorEnumA::BadCase),
"SomeErrorEnumA::BadCase"
);
}
#[test]