Closed frenetisch-applaudierend closed 1 year ago
I ran into a small issue with OnceLock<Key>::set() because it returns a Result<(), Key> which requires Key to impl Debug for expect() and unwrap() to be implemented. Also allows deriving Debug for structs which include a Key.
OnceLock<Key>::set()
Result<(), Key>
Key
Debug
expect()
unwrap()
I ran into a small issue with
OnceLock<Key>::set()
because it returns aResult<(), Key>
which requiresKey
to implDebug
forexpect()
andunwrap()
to be implemented. Also allows derivingDebug
for structs which include aKey
.