mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-02 12:33:30 +00:00
clippy fix: the following explicit lifetimes could be elided
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
6c38a997af
commit
3c7c9fc55d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user