Skip to content

Commit b5f26e4

Browse files
committed
fix: remove redundant clone
1 parent b234bcc commit b5f26e4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/src/login5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl Login5Manager {
183183
}
184184

185185
let method = Login_method::StoredCredential(StoredCredential {
186-
username: self.session().username().clone(),
186+
username: self.session().username(),
187187
data: auth_data,
188188
..Default::default()
189189
});

discovery/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl RequestHandler {
156156

157157
let encrypted_blob_len = encrypted_blob.len();
158158
if encrypted_blob_len < 16 {
159-
return Err(DiscoveryError::HmacError(encrypted_blob.clone()).into());
159+
return Err(DiscoveryError::HmacError(encrypted_blob).into());
160160
}
161161

162162
let iv = &encrypted_blob[0..16];

oauth/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ pub fn get_access_token(
506506
+ token
507507
.expires_in()
508508
.unwrap_or_else(|| Duration::from_secs(3600)),
509-
token_type: format!("{:?}", token.token_type()).to_string(), // Urgh!?
509+
token_type: format!("{:?}", token.token_type()),
510510
scopes: token_scopes,
511511
})
512512
}

0 commit comments

Comments
 (0)