about summary refs log tree commit diff
path: root/tvix/store/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-10T12·17+0100
committerclbot <clbot@tvl.fyi>2023-03-10T12·23+0000
commitac3e470b15d2da16a48117ef27d1bc2f05508ffa (patch)
treeb2713b57b830dae534dadf6e231944df6092e597 /tvix/store/src
parente1783c45a4f9fc8d2b46d9b647c1fe49d883ad86 (diff)
feat(tvix/store): clippy r/5946
warning: the following explicit lifetimes could be elided: 'set
   --> store/src/proto/mod.rs:201:1
    |
201 | / fn update_if_lt_prev<'set, 'n>(
202 | |     prev_name: &'set mut &'n str,
203 | |     name: &'n str,
204 | | ) -> Result<(), ValidateDirectoryError> {
    | |_______________________________________^
    |
    = 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

Change-Id: I053d370a34e5c6721ef86502c7f225c3fbfb8746
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8244
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src')
-rw-r--r--tvix/store/src/proto/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/store/src/proto/mod.rs b/tvix/store/src/proto/mod.rs
index ae5054df5473..fceb6b5902df 100644
--- a/tvix/store/src/proto/mod.rs
+++ b/tvix/store/src/proto/mod.rs
@@ -198,8 +198,8 @@ impl NamedNode for node::Node {
 /// Accepts a name, and a mutable reference to the previous name.
 /// If the passed name is larger than the previous one, the reference is updated.
 /// If it's not, an error is returned.
-fn update_if_lt_prev<'set, 'n>(
-    prev_name: &'set mut &'n str,
+fn update_if_lt_prev<'n>(
+    prev_name: &mut &'n str,
     name: &'n str,
 ) -> Result<(), ValidateDirectoryError> {
     if *name < **prev_name {