diff --git a/src/error.rs b/src/error.rs index 7f92cfe..5a8dd16 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,7 +10,7 @@ use client::response::{FromResponse, ParseError, JsonHelper}; /// OAuth 2.0 error codes. /// /// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2). -#[derive(Debug)] +#[derive(Debug, PartialEq, Eq)] pub enum OAuth2ErrorCode { /// The request is missing a required parameter, includes an unsupported parameter value (other /// than grant type), repeats a parameter, includes multiple credentials, utilizes more than @@ -57,7 +57,7 @@ impl<'a> From<&'a str> for OAuth2ErrorCode { /// OAuth 2.0 error. /// /// See [RFC 6749, section 5.2](http://tools.ietf.org/html/rfc6749#section-5.2). -#[derive(Debug)] +#[derive(Debug, PartialEq, Eq)] pub struct OAuth2Error { /// Error code. pub code: OAuth2ErrorCode,