diff --git a/src/client/mod.rs b/src/client/mod.rs index 7fa74b6..ce31545 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -1,6 +1,5 @@ //! Client. -use std::fmt; use std::marker::PhantomData; use hyper::{self, header, mime}; @@ -18,6 +17,7 @@ pub use self::error::ClientError; mod error; /// OAuth 2.0 client. +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Client { client_id: String, client_secret: String, @@ -25,16 +25,6 @@ pub struct Client { provider: PhantomData

, } -impl fmt::Debug for Client

{ - fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { - f.debug_struct("Client") - .field("client_id", &self.client_id) - .field("client_secret", &self.client_secret) - .field("redirect_uri", &self.redirect_uri) - .finish() - } -} - impl Client

{ /// Creates a client. ///