9 lines
304 B
Markdown
9 lines
304 B
Markdown
# Conventions
|
|
|
|
## Rust Style
|
|
|
|
- Prefer `use serde_json as json;` whenever a file works with JSON values or macros.
|
|
- Keep functions on the happy path.
|
|
- Use early exits for optional values with `let Some(x) = maybe else { return ...; }`.
|
|
- Avoid deep nesting when an early return makes the flow clearer.
|