From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 71FDC1FF18A for ; Mon, 26 May 2025 16:15:16 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8C8AE340B5; Mon, 26 May 2025 16:15:29 +0200 (CEST) From: Hannes Laimer To: pbs-devel@lists.proxmox.com Date: Mon, 26 May 2025 16:14:42 +0200 Message-Id: <20250526141445.228717-10-h.laimer@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250526141445.228717-1-h.laimer@proxmox.com> References: <20250526141445.228717-1-h.laimer@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.026 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup v2 09/12] examples/tests: add missing generics X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" Signed-off-by: Hannes Laimer --- pbs-datastore/examples/ls-snapshots.rs | 4 ++-- tests/prune.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pbs-datastore/examples/ls-snapshots.rs b/pbs-datastore/examples/ls-snapshots.rs index 2eeea489..cf860a05 100644 --- a/pbs-datastore/examples/ls-snapshots.rs +++ b/pbs-datastore/examples/ls-snapshots.rs @@ -2,7 +2,7 @@ use std::path::PathBuf; use anyhow::{bail, Error}; -use pbs_datastore::DataStore; +use pbs_datastore::{chunk_store::Read as R, DataStore}; fn run() -> Result<(), Error> { let base: PathBuf = match std::env::args().nth(1) { @@ -18,7 +18,7 @@ fn run() -> Result<(), Error> { None => None, }; - let store = unsafe { DataStore::open_path("", base, None)? }; + let store = unsafe { DataStore::::open_path("", base, None)? }; for ns in store.recursive_iter_backup_ns_ok(Default::default(), max_depth)? { println!("found namespace store:/{}", ns); diff --git a/tests/prune.rs b/tests/prune.rs index b11449ca..02de1078 100644 --- a/tests/prune.rs +++ b/tests/prune.rs @@ -4,10 +4,10 @@ use anyhow::Error; use pbs_api_types::{PruneJobOptions, MANIFEST_BLOB_NAME}; use pbs_datastore::prune::compute_prune_info; -use pbs_datastore::{BackupDir, BackupInfo}; +use pbs_datastore::{chunk_store::Read as R, BackupDir, BackupInfo}; fn get_prune_list( - list: Vec, + list: Vec>, return_kept: bool, options: &PruneJobOptions, ) -> Vec { @@ -27,7 +27,7 @@ fn get_prune_list( .collect() } -fn create_info(snapshot: &str, partial: bool) -> BackupInfo { +fn create_info(snapshot: &str, partial: bool) -> BackupInfo { let backup_dir = BackupDir::new_test(snapshot.parse().unwrap()); let mut files = Vec::new(); @@ -43,7 +43,7 @@ fn create_info(snapshot: &str, partial: bool) -> BackupInfo { } } -fn create_info_protected(snapshot: &str, partial: bool) -> BackupInfo { +fn create_info_protected(snapshot: &str, partial: bool) -> BackupInfo { let mut info = create_info(snapshot, partial); info.protected = true; info -- 2.39.5 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel