Fix compile error caused by updated Step::steps_between in Rust

This commit is contained in:
Marsman1996
2024-11-30 18:58:18 +08:00
committed by Tate, Hongliang Tian
parent 5e35704e38
commit 6d3bb5a9d0
10 changed files with 14 additions and 18 deletions

View File

@ -89,7 +89,7 @@ impl<const N: u16> Sub<u64> for BlockId<N> {
/// Implements the `Step` trait to iterate over `Range<Id>`.
impl<const N: u16> Step for BlockId<N> {
fn steps_between(start: &Self, end: &Self) -> Option<usize> {
fn steps_between(start: &Self, end: &Self) -> (usize, Option<usize>) {
u64::steps_between(&start.0, &end.0)
}