Skip to content

Commit 3104fe6

Browse files
committed
chore: stop using deprecated MIN/MAX constants
The associated constants on the integer types have been available since 1.43.0, so do not use the corresponding modules in std or core. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 05a85b3 commit 3104fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/volatile_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub type Result<T> = result::Result<T, Error>;
8585
/// # use vm_memory::volatile_memory::compute_offset;
8686
/// #
8787
/// assert_eq!(108, compute_offset(100, 8).unwrap());
88-
/// assert!(compute_offset(std::usize::MAX, 6).is_err());
88+
/// assert!(compute_offset(usize::MAX, 6).is_err());
8989
/// ```
9090
pub fn compute_offset(base: usize, offset: usize) -> Result<usize> {
9191
match base.checked_add(offset) {

0 commit comments

Comments
 (0)