mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user