clippy fix: the following explicit lifetimes could be elided

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
Lukas Wagner 2023-08-08 10:01:51 +02:00 committed by Wolfgang Bumiller
parent 6c38a997af
commit 3c7c9fc55d

View File

@ -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