mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-02-23 15:50:00 +01:00
fix(refresh): BorrowMut for & and owned Client
That way, we are most flexible, at the cost of additional code.
This commit is contained in:
@@ -51,8 +51,7 @@
|
||||
//! use oauth2::{RefreshFlow, AuthenticationType, RefreshResult};
|
||||
//!
|
||||
//! # #[test] fn refresh() {
|
||||
//! let mut c = hyper::Client::new();
|
||||
//! let mut f = RefreshFlow::new(&mut c);
|
||||
//! let mut f = RefreshFlow::new(hyper::Client::new());
|
||||
//! let new_token = match *f.refresh_token(AuthenticationType::Device,
|
||||
//! "my_client_id", "my_secret",
|
||||
//! "my_refresh_token") {
|
||||
|
||||
Reference in New Issue
Block a user