[pbs-devel] [PATCH proxmox-backup v2 2/8] client: backup writer: elide lifetime which can be auto inferred

Christian Ebner c.ebner at proxmox.com
Wed Jul 30 09:57:44 CEST 2025


Fix the issue as reported by a `cargo clippy` run.

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner at proxmox.com>
Tested-by: Lukas Wagner <l.wagner at proxmox.com>
---
changes since version 1:
 - no changes

 pbs-client/src/backup_writer.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pbs-client/src/backup_writer.rs b/pbs-client/src/backup_writer.rs
index 9f62baba3..03202eac5 100644
--- a/pbs-client/src/backup_writer.rs
+++ b/pbs-client/src/backup_writer.rs
@@ -91,9 +91,9 @@ impl BackupWriter {
     }
 
     #[allow(clippy::too_many_arguments)]
-    pub async fn start<'a>(
+    pub async fn start(
         client: &HttpClient,
-        writer_options: BackupWriterOptions<'a>,
+        writer_options: BackupWriterOptions<'_>,
     ) -> Result<Arc<BackupWriter>, Error> {
         let mut param = json!({
             "backup-type": writer_options.backup.ty(),
-- 
2.47.2





More information about the pbs-devel mailing list