chore: Bump Rust version to 1.86 (#28021)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
7492ec3f67
commit
c6e2d20a02
17 changed files with 24 additions and 23 deletions
|
@ -2876,7 +2876,7 @@ impl BufferSnapshot {
|
|||
if let Some(range_to_truncate) = indent_ranges
|
||||
.iter_mut()
|
||||
.filter(|indent_range| indent_range.contains(&outdent_position))
|
||||
.last()
|
||||
.next_back()
|
||||
{
|
||||
range_to_truncate.end = outdent_position;
|
||||
}
|
||||
|
|
|
@ -680,7 +680,7 @@ impl LanguageRegistry {
|
|||
// `Path.extension()` returns None for files with a leading '.'
|
||||
// and no other extension which is not the desired behavior here,
|
||||
// as we want `.zshrc` to result in extension being `Some("zshrc")`
|
||||
let extension = filename.and_then(|filename| filename.split('.').last());
|
||||
let extension = filename.and_then(|filename| filename.split('.').next_back());
|
||||
let path_suffixes = [extension, filename, path.to_str()];
|
||||
let empty = GlobSet::empty();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue