diff --git a/Cargo.toml b/Cargo.toml index 4503b94..4e0db40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index 2c1ff36..428def4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -340,18 +340,6 @@ impl From for Error { } } -impl From> for Error { - fn from(k: async_channel_2::SendError) -> Self { - Self::from_string(k) - } -} - -impl From for Error { - fn from(k: async_channel_2::RecvError) -> Self { - Self::from_string(k) - } -} - impl From 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]