diff --git a/pbs-client/src/http_client.rs b/pbs-client/src/http_client.rs index 30af59669..90d0d04b0 100644 --- a/pbs-client/src/http_client.rs +++ b/pbs-client/src/http_client.rs @@ -215,7 +215,7 @@ fn load_fingerprint(prefix: &str, server: &str) -> Option { // usually ~/.config//fingerprints let path = base.place_config_file("fingerprints").ok()?; - let raw = std::fs::read_to_string(&path).ok()?; + let raw = std::fs::read_to_string(path).ok()?; for line in raw.split('\n') { let items: Vec = line.split_whitespace().map(String::from).collect(); @@ -278,7 +278,7 @@ fn load_ticket_info(prefix: &str, server: &str, userid: &Userid) -> Option<(Stri // usually /run/user//... let path = base.place_runtime_file("tickets").ok()?; - let data = file_get_json(&path, None).ok()?; + let data = file_get_json(path, None).ok()?; let now = proxmox_time::epoch_i64(); let ticket_lifetime = proxmox_auth_api::TICKET_LIFETIME - 60; let uinfo = data[server][userid.as_str()].as_object()?; diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs index 613559d28..a9a956c2e 100644 --- a/pbs-client/src/pxar/create.rs +++ b/pbs-client/src/pxar/create.rs @@ -447,7 +447,7 @@ impl Archiver { let match_path = PathBuf::from("/").join(full_path.clone()); if self .patterns - .matches(match_path.as_os_str().as_bytes(), Some(stat.st_mode as u32)) + .matches(match_path.as_os_str().as_bytes(), Some(stat.st_mode)) == Some(MatchType::Exclude) { continue; @@ -533,7 +533,7 @@ impl Archiver { let match_path = PathBuf::from("/").join(self.path.clone()); if self .patterns - .matches(match_path.as_os_str().as_bytes(), Some(stat.st_mode as u32)) + .matches(match_path.as_os_str().as_bytes(), Some(stat.st_mode)) == Some(MatchType::Exclude) { return Ok(()); diff --git a/pbs-client/src/tools/mod.rs b/pbs-client/src/tools/mod.rs index fa1d50925..1b0123a39 100644 --- a/pbs-client/src/tools/mod.rs +++ b/pbs-client/src/tools/mod.rs @@ -414,7 +414,7 @@ pub fn complete_repository(_arg: &str, _param: &HashMap) -> Vec< _ => return result, }; - let data = file_get_json(&path, None).unwrap_or_else(|_| json!({})); + let data = file_get_json(path, None).unwrap_or_else(|_| json!({})); if let Some(map) = data.as_object() { for (repo, _count) in map {