Skip to content

Commit

Permalink
fix(API): review Result types and adapt code
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Byron committed Apr 23, 2015
1 parent 2cdf8bb commit 2481c75
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 193 deletions.
2 changes: 1 addition & 1 deletion examples/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit 2481c75

Please sign in to comment.