mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-20 04:56:32 +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)
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
//! The framebuffer of Asterinas.
|
||||
#![no_std]
|
||||
#![deny(unsafe_code)]
|
||||
#![feature(strict_provenance)]
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
|
Reference in New Issue
Block a user