Closed djc closed 4 years ago
I've simplified the impls to just wrap Option<T>
around T: Deserialize
/T: Serialize
, and added a basic test for Some
and None
. Since this otherwise relies on the existing impls, it didn't seem like any more exhausting testing was needed, but let me know if you feel otherwise.
@dtolnay friendly reminder?
Ah, you're right -- it's more subtle than I expected. I think this version solves the issues.
I merged an alternative implementation in #21 and published 0.11.4 with the impls. Thanks!
Thanks for finishing this up, and sorry for being a bit iterative and not doing more upfront testing.
It'd be nice if I could handle
Option<&'a [u8]>
directly through#[serde(with = "serde_bytes")]
.