diff --git a/rumqttc/CHANGELOG.md b/rumqttc/CHANGELOG.md index c8c8716a3..7d3974972 100644 --- a/rumqttc/CHANGELOG.md +++ b/rumqttc/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +* `Eq` and `PartialEq` derive implementation on `ClientError`. * `size()` method on `Packet` calculates size once serialized. * `read()` and `write()` methods on `Packet`. * `ConnectionAborted` variant on `StateError` type to denote abrupt end to a connection diff --git a/rumqttc/src/client.rs b/rumqttc/src/client.rs index a0c907049..60256fd29 100644 --- a/rumqttc/src/client.rs +++ b/rumqttc/src/client.rs @@ -12,7 +12,7 @@ use tokio::runtime::{self, Runtime}; use tokio::time::timeout; /// Client Error -#[derive(Debug, thiserror::Error)] +#[derive(Debug, Eq, PartialEq, thiserror::Error)] pub enum ClientError { #[error("Failed to send mqtt requests to eventloop")] Request(Request),