Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
The unstable is_some_with feature has been renamed to is_some_and.

Signed-off-by: Andrew Bresticker <abrestic@rivosinc.com>
  • Loading branch information
abrestic-rivos committed Oct 4, 2022
1 parent d6ae512 commit df1a605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ptr_sub_ptr,
slice_ptr_get,
let_chains,
is_some_with
is_some_and
)]

use core::alloc::{Allocator, GlobalAlloc, Layout};
Expand Down
2 changes: 1 addition & 1 deletion src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ impl<T: GuestStagePagingMode> HostVm<T> {
fn vcpu_is_runnable(&self, vcpu_id: u64) -> bool {
let vm = self.inner.as_finalized_vm().unwrap();
vm.get_vcpu_status(vcpu_id)
.is_ok_and(|s| *s == HartState::Started as u64)
.is_ok_and(|s| s == HartState::Started as u64)
}

// Handle a page fault for `vcpu_id`.
Expand Down

0 comments on commit df1a605

Please sign in to comment.