Derive Eq for OAuth2Error

This commit is contained in:
Curtis McEnroe 2015-12-23 23:07:46 -05:00
parent db058fffdf
commit fbfb2fa284
1 changed files with 2 additions and 2 deletions

View File

@ -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,