clippy: pass &str/&[..] instead of &String/&Vec

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler committed 2021-01-20 16:23:54 +01:00
1 parent ccec086e25
commit 09faa9ee95
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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()) {