[pbs-devel] [PATCH backup 09/13] pxar: elide explicit lifetime
Maximiliano Sandoval
m.sandoval at proxmox.com
Mon Feb 12 14:17:34 CET 2024
Fixes the clippy lint
```
warning: the following explicit lifetimes could be elided: 'b
--> pbs-client/src/pxar/create.rs:225:33
|
225 | fn archive_dir_contents<'a, 'b, T: SeqWrite + Send>(
| ^^
226 | &'a mut self,
227 | encoder: &'a mut Encoder<'b, T>,
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
225 ~ fn archive_dir_contents<'a, T: SeqWrite + Send>(
226 | &'a mut self,
227 ~ encoder: &'a mut Encoder<'_, T>,
|
```
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
pbs-client/src/pxar/create.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pbs-client/src/pxar/create.rs b/pbs-client/src/pxar/create.rs
index e7053d9e..3cf2b35a 100644
--- a/pbs-client/src/pxar/create.rs
+++ b/pbs-client/src/pxar/create.rs
@@ -222,9 +222,9 @@ impl Archiver {
}
}
- fn archive_dir_contents<'a, 'b, T: SeqWrite + Send>(
+ fn archive_dir_contents<'a, T: SeqWrite + Send>(
&'a mut self,
- encoder: &'a mut Encoder<'b, T>,
+ encoder: &'a mut Encoder<'_, T>,
mut dir: Dir,
is_root: bool,
) -> BoxFuture<'a, Result<(), Error>> {
--
2.39.2
More information about the pbs-devel
mailing list