Skip to content

Commit

Permalink
clippy: Fix legacy_numeric_constants lint. (#68)
Browse files Browse the repository at this point in the history
This is in nightly clippy.
  • Loading branch information
waywardmonkeys authored Apr 29, 2024
1 parent 920b845 commit 4744aec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chrometrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn write_results_recursive(
.replace("ThreadId(", "")
.replace(')', "")
.parse::<u64>()
.unwrap_or(std::u64::MAX)
.unwrap_or(u64::MAX)
};
write!(
file,
Expand Down
2 changes: 1 addition & 1 deletion src/profiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PendingFramePools>,
Expand Down

0 comments on commit 4744aec

Please sign in to comment.