Make Errors Hash and Eq, bump version

This commit is contained in:
bitfl0wer 2023-09-03 16:55:19 +02:00
parent bc5e64b79d
commit db533f9700
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -177,7 +177,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]] [[package]]
name = "chorus" name = "chorus"
version = "0.8.1" version = "0.9.0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64 0.21.3", "base64 0.21.3",

View File

@ -1,7 +1,7 @@
[package] [package]
name = "chorus" name = "chorus"
description = "A library for interacting with multiple Spacebar-compatible Instances at once." description = "A library for interacting with multiple Spacebar-compatible Instances at once."
version = "0.8.1" version = "0.9.0"
license = "AGPL-3.0" license = "AGPL-3.0"
edition = "2021" edition = "2021"
repository = "https://github.com/polyphony-chat/chorus" repository = "https://github.com/polyphony-chat/chorus"

View File

@ -4,7 +4,7 @@ use custom_error::custom_error;
use crate::types::WebSocketEvent; use crate::types::WebSocketEvent;
custom_error! { custom_error! {
#[derive(PartialEq, Eq)] #[derive(PartialEq, Eq, Clone, Hash)]
pub RegistrationError pub RegistrationError
Consent = "Consent must be 'true' to register.", Consent = "Consent must be 'true' to register.",
} }
@ -12,7 +12,7 @@ custom_error! {
pub type ChorusResult<T> = std::result::Result<T, ChorusError>; pub type ChorusResult<T> = std::result::Result<T, ChorusError>;
custom_error! { custom_error! {
#[derive(Clone)] #[derive(Clone, Hash, PartialEq, Eq)]
pub ChorusError pub ChorusError
/// Server did not respond. /// Server did not respond.
NoResponse = "Did not receive a response from the Server.", NoResponse = "Did not receive a response from the Server.",