clippy: pass &str/&[..] instead of &String/&Vec
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
1 parent
ccec086e25
commit
09faa9ee95
4 files changed
+6
-6
No files matched your search
@@ -376,7 +376,7 @@ fn get_server_url() -> (String, usize) {
|
||||
}
|
||||
|
||||
pub fn send_updates_available(
|
||||
updates: &Vec<&APTUpdateInfo>,
|
||||
updates: &[&APTUpdateInfo],
|
||||
) -> Result<(), Error> {
|
||||
// update mails always go to the root@pam configured email..
|
||||
if let Some(email) = lookup_user_email(Userid::root_userid()) {
|
||||
|
||||
Reference in new issue
Block a user