chore: Bump Rust edition to 2024 (#27800)
Follow-up to https://github.com/zed-industries/zed/pull/27791 Release Notes: - N/A
This commit is contained in:
parent
d50905e000
commit
dc64ec9cc8
802 changed files with 3775 additions and 3662 deletions
|
@ -134,7 +134,7 @@ where
|
|||
D3: Dimension<'a, S>,
|
||||
{
|
||||
fn cmp(&self, cursor_location: &((D1, D2), D3), cx: &S::Context) -> Ordering {
|
||||
self.cmp(&cursor_location.0 .0, cx)
|
||||
self.cmp(&cursor_location.0.0, cx)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1418,11 +1418,7 @@ mod tests {
|
|||
let mut ix = 0;
|
||||
let iterator = std::iter::from_fn(|| {
|
||||
ix = (ix + 1) % 2;
|
||||
if ix == 1 {
|
||||
Some(1)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
if ix == 1 { Some(1) } else { None }
|
||||
});
|
||||
assert_eq!(SumTree::from_iter(iterator, &()).items(&()), vec![1]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue