From d31ccaf473aaed58a1c8b7f8a2b80bb353d69cb7 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 24 Dec 2015 14:22:04 -0500 Subject: [PATCH] Return ClientError from Client::auth_uri --- src/client/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index 7387e92..5b72289 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -5,7 +5,7 @@ use std::marker::PhantomData; use hyper::{self, header, mime}; use rustc_serialize::json::Json; -use url::{self, form_urlencoded, Url}; +use url::{form_urlencoded, Url}; use error::OAuth2Error; use provider::Provider; @@ -88,7 +88,7 @@ impl Client

{ /// None /// ); /// ``` - pub fn auth_uri(&self, scope: Option<&str>, state: Option<&str>) -> Result + pub fn auth_uri(&self, scope: Option<&str>, state: Option<&str>) -> Result { let mut uri = try!(Url::parse(P::auth_uri()));