Remove result from anchor cmp functions
Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
ab631cf6c3
commit
92c7b5d6ef
11 changed files with 68 additions and 141 deletions
|
@ -367,8 +367,7 @@ impl ProjectDiagnosticsEditor {
|
|||
range_a
|
||||
.start
|
||||
.cmp(&range_b.start, &snapshot)
|
||||
.unwrap()
|
||||
.then_with(|| range_a.end.cmp(&range_b.end, &snapshot).unwrap())
|
||||
.then_with(|| range_a.end.cmp(&range_b.end, &snapshot))
|
||||
});
|
||||
|
||||
if path_state.diagnostic_groups.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue