mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-05-23 18:27:23 +00:00
pve-rs: tfa: clippy: redundant slicing of the whole range
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
parent
8aa44dddb8
commit
927df476fc
@ -802,7 +802,7 @@ fn usize_from_perl(value: JsonValue) -> Option<usize> {
|
|||||||
fn trim_ascii_whitespace_start(data: &[u8]) -> &[u8] {
|
fn trim_ascii_whitespace_start(data: &[u8]) -> &[u8] {
|
||||||
match data.iter().position(|&c| !c.is_ascii_whitespace()) {
|
match data.iter().position(|&c| !c.is_ascii_whitespace()) {
|
||||||
Some(from) => &data[from..],
|
Some(from) => &data[from..],
|
||||||
None => &data[..],
|
None => data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user