mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 03:56:42 +00:00
Fix compile error caused by updated Step::steps_between
in Rust
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
5e35704e38
commit
6d3bb5a9d0
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user