17 lines
258 B
Markdown
17 lines
258 B
Markdown
# Coding Rules
|
|
|
|
## Hard Constraints
|
|
- No `?`
|
|
- No `unwrap` / `expect`
|
|
- Explicit error handling only
|
|
- No `mod.rs`
|
|
- tracing obligatoire
|
|
- banned: anyhow, thiserror
|
|
|
|
## Example
|
|
|
|
match do_work() {
|
|
Ok(v) => v,
|
|
Err(e) => return Err(MyError::from(e)),
|
|
}
|