diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-16 09:25:15 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-16 09:25:15 -0400 |
commit | 96bc0dccef3db801759bc45468044d93272c27d1 (patch) | |
tree | 4f91815fec2768d617df44be03657b7313c4f368 | |
parent | c4ea88441cd5f67683008da99949e5101183b8b1 (diff) | |
download | teleterm-96bc0dccef3db801759bc45468044d93272c27d1.tar.gz teleterm-96bc0dccef3db801759bc45468044d93272c27d1.zip |
remove some unnecessary moves
-rw-r--r-- | src/oauth.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oauth.rs b/src/oauth.rs index e23c44e..ce21e33 100644 --- a/src/oauth.rs +++ b/src/oauth.rs @@ -34,7 +34,7 @@ pub trait Oauth { let msg = stringify_oauth2_http_error(&e); Error::ExchangeCode { msg } }) - .and_then(move |token| { + .and_then(|token| { cache_refresh_token(token_cache_file, &token) .map(move |_| token.access_token().secret().to_string()) }); @@ -57,7 +57,7 @@ pub trait Oauth { let msg = stringify_oauth2_http_error(&e); Error::ExchangeCode { msg } }) - .and_then(move |token| { + .and_then(|token| { cache_refresh_token(token_cache_file, &token) .map(move |_| token.access_token().secret().to_string()) }); |