Skip to content

Commit

Permalink
clippy: Fix (nightly) legacy_numeric_constants lints.
Browse files Browse the repository at this point in the history
These functions are marked as pending deprecation and it is
suggested to use the associated consts instead.
  • Loading branch information
waywardmonkeys authored and 0xpr03 committed Jun 26, 2024
1 parent ecf0d95 commit 8b6d059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notify-debouncer-full/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl FileIdMap {

fn dir_scan_depth(is_recursive: bool) -> usize {
if is_recursive {
usize::max_value()
usize::MAX
} else {
1
}
Expand Down
2 changes: 1 addition & 1 deletion notify/src/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ mod data {

fn dir_scan_depth(is_recursive: bool) -> usize {
if is_recursive {
usize::max_value()
usize::MAX
} else {
1
}
Expand Down

0 comments on commit 8b6d059

Please sign in to comment.