-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: impl Serialize instead of using a derive
`actual` and `expect` may not directly implement Serialize. Instead, impl Serialize and use the AsNode trait to serialize. I did consider having `actual`/`expect` instead be an Option<Node<'_>> which _ought_ to allow for deriving Serialize, but the macro still wanted to enforce a bound on the `A` & `E` parameters implementing Serialize, even though that's not actually required.
- Loading branch information
1 parent
a79a319
commit 9e405ab
Showing
1 changed file
with
27 additions
and
8 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