Skip to content

Use CFIndex::MAX rather than CFIndex::max_value()#699

Merged
wusyong merged 1 commit into
servo:mainfrom
waywardmonkeys:cfindex-max
Aug 12, 2024
Merged

Use CFIndex::MAX rather than CFIndex::max_value()#699
wusyong merged 1 commit into
servo:mainfrom
waywardmonkeys:cfindex-max

Conversation

@waywardmonkeys
Copy link
Copy Markdown
Contributor

Since CFIndex is just isize, we can use the CFIndex::MAX constant. The max_value and other functions are pending deprecation and cause a clippy lint warning.

Since `CFIndex` is just `isize`, we can use the `CFIndex::MAX`
constant. The `max_value` and other functions are pending
deprecation and cause a clippy lint warning.
@wusyong wusyong added this pull request to the merge queue Aug 12, 2024
Merged via the queue into servo:main with commit 84b8365 Aug 12, 2024
@waywardmonkeys waywardmonkeys deleted the cfindex-max branch August 12, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants