Commit 37eb78b
committed
Remove amount serde traits
Now that a `SignedAmount` can be infallibly converted to an `Amount`
we do not need all the internal complexity in the `amount::serde`
module, we can just de/serialize `SignedAmount` and convert it to
`Amount`. This also has the advantage if someone has a type that is
`Into<SignedAmount>` and `TryFrom<SignedAmount>` they can de/serialize
it also - BOOM!
Props to Kix for the idea.1 parent 2bb9bb6 commit 37eb78b
3 files changed
+162
-210
lines changed
0 commit comments