-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SubSecondRound by reference, via Clone trait bounds
Note that the Add and Sub traits are not by reference. All returned paths require an owned Timelike, so this just immediatly clones. Thus this has no efficiency advantage, but only restricts the blanket implementation with the Clone bounds. However all chrono::Timelike implementations include Clone (and Copy).
- Loading branch information
Showing
1 changed file
with
14 additions
and
12 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