From ac3e470b15d2da16a48117ef27d1bc2f05508ffa Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 10 Mar 2023 13:17:41 +0100 Subject: feat(tvix/store): clippy 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 Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/store/src/proto/mod.rs | 4 ++-- 1 file 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 { -- cgit 1.4.1