From 4744aecbb25994ea0194d64b8c47b142592c168a Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 29 Apr 2024 14:55:28 +0700 Subject: [PATCH] clippy: Fix `legacy_numeric_constants` lint. (#68) This is in nightly clippy. --- src/chrometrace.rs | 2 +- src/profiler.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chrometrace.rs b/src/chrometrace.rs index 82e38c0..6f164ad 100644 --- a/src/chrometrace.rs +++ b/src/chrometrace.rs @@ -42,7 +42,7 @@ fn write_results_recursive( .replace("ThreadId(", "") .replace(')', "") .parse::() - .unwrap_or(std::u64::MAX) + .unwrap_or(u64::MAX) }; write!( file, diff --git a/src/profiler.rs b/src/profiler.rs index 00905f6..d8c9f58 100644 --- a/src/profiler.rs +++ b/src/profiler.rs @@ -860,7 +860,7 @@ struct PendingFramePools { pub type GpuTimerQueryTreeHandle = u32; /// Handle for the root scope. -pub const ROOT_QUERY_HANDLE: GpuTimerQueryTreeHandle = std::u32::MAX; +pub const ROOT_QUERY_HANDLE: GpuTimerQueryTreeHandle = u32::MAX; struct ActiveFrame { query_pools: RwLock,