Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/span/src/map.rs')
| -rw-r--r-- | crates/span/src/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/span/src/map.rs b/crates/span/src/map.rs index d8309b04d4..f13df88768 100644 --- a/crates/span/src/map.rs +++ b/crates/span/src/map.rs @@ -30,7 +30,7 @@ impl SpanMap { /// in order. pub fn finish(&mut self) { always!( - self.spans.iter().tuple_windows().all(|(a, b)| a.0 < b.0), + self.spans.iter().array_windows::<2>().all(|[a, b]| a.0 < b.0), "spans are not in order" ); self.spans.shrink_to_fit(); |