[pbs-devel] [PATCH proxmox 13/15] clippy fix: the following explicit lifetimes could be elided

Lukas Wagner l.wagner at proxmox.com
Tue Aug 8 10:01:51 CEST 2023


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 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 e02b716..36bc0e7 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
-- 
2.39.2






More information about the pbs-devel mailing list