Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make types implement Debug #11

Open
juh9870 opened this issue Sep 17, 2023 · 1 comment
Open

Make types implement Debug #11

juh9870 opened this issue Sep 17, 2023 · 1 comment

Comments

@juh9870
Copy link

juh9870 commented Sep 17, 2023

Currently, public structs from this crate don't implement Debug trait, which causes issues if I want to pass some toasts' creation options around (Commands pattern, for example), as well as goes against a pretty strong suggestion in Rust docs

@urholaukkarinen
Copy link
Owner

Currently most public structs do implement Debug, but some, like Toast and Toasts, have fields that themselves do not implement it, so those would need an explicit Debug impl. However, there's no reason why something like ToastOptions should not have Debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants