-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix custom functions for optional number types (#315)
* Dynamically build the list of number types Round-tripping these through `quote!().to_token_stream().to_string()` lets us ensure that the resulting strings always match. Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com> * Don't destructure number types by reference Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com> * Add test for custom fns on number types not taking a reference Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com> --------- Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
- Loading branch information
Showing
4 changed files
with
79 additions
and
51 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
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
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
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