-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
687: Address clippy warning r=taiki-e a=erickt Clippy doesn't like this pattern: ``` for i in 0..batch_size { ... batch_size = i; ... } ``` because it can trick readers into thinking the loop condition might be modified during iteration. This avoids the warning by explicitly making a new variable for the end condition of the loop. Co-authored-by: Erick Tryzelaar <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 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