protocol: fix redundant_clone in access token
This commit is contained in:
parent
77394f0536
commit
2f1c7b3c60
|
@ -77,7 +77,7 @@ impl Profile {
|
||||||
|
|
||||||
pub fn refresh(self, token: &str) -> Result<Profile, super::Error> {
|
pub fn refresh(self, token: &str) -> Result<Profile, super::Error> {
|
||||||
let req_msg = json!({
|
let req_msg = json!({
|
||||||
"accessToken": self.access_token.clone(),
|
"accessToken": self.access_token,
|
||||||
"clientToken": token
|
"clientToken": token
|
||||||
});
|
});
|
||||||
let req = serde_json::to_string(&req_msg)?;
|
let req = serde_json::to_string(&req_msg)?;
|
||||||
|
|
Loading…
Reference in New Issue