fix(API): review Result types and adapt code

* Do not return massive custom result enums, but instead adhere to the
  `Result` convention. This natively fixed our problem related to having
  to make unnecessary clones, making our design much cleaner.

Fixes #4
This commit is contained in:
Sebastian Thiel
2015-04-23 17:01:21 +02:00
parent 2cdf8bbf76
commit 2481c75c31
4 changed files with 198 additions and 199 deletions

View File

@@ -64,7 +64,7 @@ fn main() {
struct StdoutHandler;
impl oauth2::AuthenticatorDelegate for StdoutHandler {
fn present_user_code(&mut self, pi: oauth2::PollInformation) {
fn present_user_code(&mut self, pi: &oauth2::PollInformation) {
println!("Please enter '{}' at {} and authenticate the application for the\n\
given scopes. This is not a test !\n\
You have time until {} to do that.