You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove Visibility, Struct Field Ordering, Macros, and `pub use ... as`
bullet — these are either standard Rust knowledge, generic best practices,
or not used in the codebase.
https://claude.ai/code/session_01VE5W68ky3UobBMongN8Dfc
Co-authored-by: Claude <noreply@anthropic.com>
- Use `pub(crate)` for items shared within the crate but not exposed externally.
209
-
- Default to private for everything else.
210
-
211
199
### Error Handling
212
200
213
201
- Define custom error enums with `#[derive(Debug, Display, Error)]` from `derive_more`.
@@ -233,14 +221,6 @@ ExitCode::from(match self {
233
221
})
234
222
```
235
223
236
-
### Struct Field Ordering
237
-
238
-
Order fields logically by purpose, not alphabetically. Group related fields together. Document every public field with `///` comments.
239
-
240
-
### Macros
241
-
242
-
Use macros to reduce boilerplate for repetitive patterns (e.g. newtype wrappers, trait impls for multiple numeric types). Keep macros well-scoped and documented.
243
-
244
224
## Setup
245
225
246
226
Install the required Rust toolchain and components before running any checks:
0 commit comments