Remove unnecessary Option from functions querying buffer outline (#37935)

`None` case wasn't being used

Release Notes:

- N/A
This commit is contained in:
Michael Sloan
2025-09-10 18:21:51 +00:00
committed by GitHub
parent b28c979aae
commit 441a934d84
13 changed files with 40 additions and 65 deletions
+1 -1
View File
@@ -986,7 +986,7 @@ impl ContextProvider for BasicContextProvider {
let buffer = location.buffer.read(cx);
let buffer_snapshot = buffer.snapshot();
let symbols = buffer_snapshot.symbols_containing(location.range.start, None);
let symbol = symbols.unwrap_or_default().last().map(|symbol| {
let symbol = symbols.last().map(|symbol| {
let range = symbol
.name_ranges
.last()