clippy: remove unnecessary clones
and from::<T>(T) Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
1 parent
47ea98e0e3
commit
4428818412
35 files changed
+47
-51
No files matched your search
@@ -403,7 +403,7 @@ fn lookup_user_email(userid: &Userid) -> Option<String> {
|
||||
|
||||
if let Ok(user_config) = user::cached_config() {
|
||||
if let Ok(user) = user_config.lookup::<User>("user", userid.as_str()) {
|
||||
return user.email.clone();
|
||||
return user.email;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user