mlemesle / rustemon

A wrapper library for PokeApi, written in Rust
MIT License
28 stars 10 forks source link

Debug Impl for RustemonClient #19

Closed c-git closed 10 months ago

c-git commented 10 months ago

Hi,

Thanks for your work on this library. I'm just trying it out for the Shuttle Christmas Code Hunt and I encountered a challenge storing the RustemonClient in a OnceLock because it doesn't implement Debug. If it's not too much trouble and doesn't cause you any problems can you derive debug on this struct please (I won't need it anymore by the time you'd be able to do it but more for the next person).

Update: I realized the problem is with expect and unwrap on Result requiring Debug.

mlemesle commented 10 months ago

Hey there,

Thanks for reaching out ! Sorry for the late answer. I'll look into it right away