rwf2 / cookie-rs

HTTP cookie parsing and cookie jar management for Rust.
https://docs.rs/cookie
Apache License 2.0
312 stars 119 forks source link

Implement Debug for Key #216

Closed frenetisch-applaudierend closed 1 year ago

frenetisch-applaudierend commented 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.