Skip to content

Commit

Permalink
Fix clippy warning about inefficient use of clone()
Browse files Browse the repository at this point in the history
Signed-off-by: David Mulder <[email protected]>
  • Loading branch information
dmulder committed May 16, 2024
1 parent cd3371c commit 47549c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/src/idprovider/himmelblau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ impl IdProvider for HimmelblauProvider {
* provide this during a silent acquire
*/
if let Some(old_token) = old_token {
token.displayname = old_token.displayname.clone()
token.displayname.clone_from(&old_token.displayname)
}
Ok(token)
}
Expand Down

0 comments on commit 47549c5

Please sign in to comment.