From 8b6d059910cbb461bbc042b117d0e219bf03f2c2 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sun, 12 May 2024 18:09:10 +0700 Subject: [PATCH] clippy: Fix (nightly) `legacy_numeric_constants` lints. These functions are marked as pending deprecation and it is suggested to use the associated consts instead. --- notify-debouncer-full/src/cache.rs | 2 +- notify/src/poll.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notify-debouncer-full/src/cache.rs b/notify-debouncer-full/src/cache.rs index 221e104f..d53a1c27 100644 --- a/notify-debouncer-full/src/cache.rs +++ b/notify-debouncer-full/src/cache.rs @@ -53,7 +53,7 @@ impl FileIdMap { fn dir_scan_depth(is_recursive: bool) -> usize { if is_recursive { - usize::max_value() + usize::MAX } else { 1 } diff --git a/notify/src/poll.rs b/notify/src/poll.rs index 9a9a9e17..007c178a 100644 --- a/notify/src/poll.rs +++ b/notify/src/poll.rs @@ -307,7 +307,7 @@ mod data { fn dir_scan_depth(is_recursive: bool) -> usize { if is_recursive { - usize::max_value() + usize::MAX } else { 1 }