-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pattern match for Syn::Expr::Lit
Moved similar patterns into a nested block, 1. The non exhaustive pattern match warnings are way more clearer and explicit now because it is on a specific smaller type than all of syn::Expr. This refactor showed that cbindgen doesn't handle byte strings and verbatim nodes. 2. Slightly shorter without sacrificing readability even though I added some newlines and comments.
- Loading branch information
1 parent
9b7bb8f
commit d996e7c
Showing
1 changed file
with
29 additions
and
30 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