diff --git a/Cargo.lock b/Cargo.lock index c19cb3b91..8375d1e47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2262,7 +2262,7 @@ dependencies = [ [[package]] name = "iggy" -version = "0.6.2" +version = "0.6.3" dependencies = [ "aes-gcm", "anyhow", diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 133bb56eb..7a73e0313 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iggy" -version = "0.6.2" +version = "0.6.3" description = "Iggy is the persistent message streaming platform written in Rust, supporting QUIC, TCP and HTTP transport protocols, capable of processing millions of messages per second." edition = "2021" license = "MIT" diff --git a/sdk/src/error.rs b/sdk/src/error.rs index 18d318d5d..41390567a 100644 --- a/sdk/src/error.rs +++ b/sdk/src/error.rs @@ -388,6 +388,12 @@ impl IggyError { } } +impl PartialEq for IggyError { + fn eq(&self, other: &Self) -> bool { + self.as_code() == other.as_code() + } +} + #[cfg(test)] mod tests { use super::*; @@ -395,7 +401,7 @@ mod tests { const GROUP_NAME_ERROR_CODE: u32 = 5005; #[test] - fn derived_sdk_error_disciminant_keeps_codes() { + fn derived_sdk_error_discriminant_keeps_codes() { assert_eq!( GROUP_NAME_ERROR_CODE, IggyError::InvalidConsumerGroupName.as_code()