From db533f9700bd0c4ce76cee18cae3b2322e64f2b6 Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Sun, 3 Sep 2023 16:55:19 +0200 Subject: [PATCH] Make Errors Hash and Eq, bump version --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/errors.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6ec87c6..2a78751 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,7 +177,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chorus" -version = "0.8.1" +version = "0.9.0" dependencies = [ "async-trait", "base64 0.21.3", diff --git a/Cargo.toml b/Cargo.toml index 9055ee9..b8de308 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "chorus" description = "A library for interacting with multiple Spacebar-compatible Instances at once." -version = "0.8.1" +version = "0.9.0" license = "AGPL-3.0" edition = "2021" repository = "https://github.com/polyphony-chat/chorus" diff --git a/src/errors.rs b/src/errors.rs index 11a7632..4099a6b 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -4,7 +4,7 @@ use custom_error::custom_error; use crate::types::WebSocketEvent; custom_error! { - #[derive(PartialEq, Eq)] + #[derive(PartialEq, Eq, Clone, Hash)] pub RegistrationError Consent = "Consent must be 'true' to register.", } @@ -12,7 +12,7 @@ custom_error! { pub type ChorusResult = std::result::Result; custom_error! { - #[derive(Clone)] + #[derive(Clone, Hash, PartialEq, Eq)] pub ChorusError /// Server did not respond. NoResponse = "Did not receive a response from the Server.",