chore: Bump Rust version to 1.86 (#28021)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-04-03 23:32:50 +02:00 committed by GitHub
parent 7492ec3f67
commit c6e2d20a02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 24 additions and 23 deletions

View file

@ -462,7 +462,7 @@ impl FromStr for GitStatus {
if path.ends_with('/') {
return None;
}
let status = entry[0..2].as_bytes().try_into().unwrap();
let status = entry.as_bytes()[0..2].try_into().unwrap();
let status = FileStatus::from_bytes(status).log_err()?;
let path = RepoPath(Path::new(path).into());
Some((path, status))