From 3c7c9fc55dbcb72dd34b6adb1106dffd48b20494 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 8 Aug 2023 10:01:51 +0200 Subject: [PATCH] clippy fix: the following explicit lifetimes could be elided Signed-off-by: Lukas Wagner --- proxmox-schema/src/property_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-schema/src/property_string.rs b/proxmox-schema/src/property_string.rs index e02b7161..36bc0e77 100644 --- a/proxmox-schema/src/property_string.rs +++ b/proxmox-schema/src/property_string.rs @@ -173,7 +173,7 @@ fn ascii_split_around(s: &str, mid: usize) -> (&str, &str) { /// Split "off" the first `mid` bytes of `s`, advancing it to `mid + 1` (assuming `mid` points to /// an ASCII character!). -fn ascii_split_off<'a, 's>(s: &'a mut &'s str, mid: usize) -> &'s str { +fn ascii_split_off<'s>(s: &mut &'s str, mid: usize) -> &'s str { let (a, b) = ascii_split_around(s, mid); *s = b; a