chore: prefer usize::MAX to std::usize::MAX

Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
tison 2023-10-06 11:10:18 +08:00 committed by GitHub
parent d9a65fdd73
commit ceb88a46c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -71,7 +71,6 @@ use std::num::NonZeroUsize;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Mutex;
use std::time::Duration;
use std::usize;
use cfg_if::cfg_if;
@ -121,7 +120,7 @@ cfg_if! {
pub mod os;
/// Key associated with notifications.
const NOTIFY_KEY: usize = std::usize::MAX;
const NOTIFY_KEY: usize = usize::MAX;
/// Indicates that a file descriptor or socket can read or write without blocking.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]