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,