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

style(hash_from_stack): Tidy up various things #151

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

jan-ferdinand
Copy link
Member

  • Hide implementation details, like struct fields.
  • Move panics to struct creation, remove from code generation.
  • Add documentation. Most crucially, document panic conditions.
  • Eagerly derive trait implementations like Debug and Clone.
  • Use preludes. Notably, in test modules: use crate::test_prelude::*
  • In an impl Trait, use same member order as in trait's definition.

- Hide implementation details, like struct fields.
- Move panics to struct creation, remove from code generation.
- Add documentation. Most crucially, document panic conditions.
- Eagerly derive trait implementations like `Debug` and `Clone`.
- Use preludes. Notably, in test modules: `use crate::test_prelude::*`
- In an `impl Trait`, use same member order as in trait's definition.

changelog: ignore
@jan-ferdinand jan-ferdinand merged commit 30ff514 into master Jan 7, 2025
3 checks passed
@jan-ferdinand jan-ferdinand deleted the tidy_up_hash_from_stack_pr branch January 7, 2025 07:36
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

Successfully merging this pull request may close these issues.

2 participants