-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete
ImageLoader::COUNT
in favour of `ImageLoader::SUPPORTED_FORM…
…ATS.len()`. (#15939) # Objective - This is a followup to #15812. ## Solution I just deleted the `COUNT` const and replaced it. I didn't realize for loops are not const yet, so improving the other const variables is not obvious. Note: `slice::len` has been const since Rust 1.39, so we're not relying on a brand new feature or anything. ## Testing - It builds!
- Loading branch information
Showing
1 changed file
with
2 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters