mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-11 07:36:53 +00:00
chore(lint): clippy rules redundant_clone (#2554)
This commit is contained in:
@@ -967,7 +967,7 @@ impl<T: Store> IamSys<T> {
|
||||
let (effective_groups, groups_source) = match args.groups.as_ref() {
|
||||
Some(g) if !g.is_empty() => (args.groups.clone(), "args"),
|
||||
_ => match self.store.get_user(parent_user).await {
|
||||
Some(u) => (u.credentials.groups.clone(), "parent_user_credentials"),
|
||||
Some(u) => (u.credentials.groups, "parent_user_credentials"),
|
||||
None => {
|
||||
tracing::warn!(
|
||||
parent_user = %parent_user,
|
||||
|
||||
Reference in New Issue
Block a user