add #[must_use] to all pub functions #47
Labels
C-enhancement
Category: a PR with an enhancement or an issue tracking an accepted enhancement
E-easy
An easy issue: a good way to start contributing
docs here.
Calling
config_dir()
and all the other public functions without reading the return values makes no sense (because they have no side effects) and is a user error for sure.By adding this macro, the user will get a warning if it calls these functions without reading the return value.
Example here
The text was updated successfully, but these errors were encountered: