mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2026-08-27 04:28:08 +00:00
754 B
754 B
Repository Instructions
Rust Rules
- In Rust code, do not introduce
unwrap()orexpect(). - Allowed exceptions:
- Tests may use
unwrap()orexpect()when it keeps the test focused and readable. - Lock acquisition may use
unwrap()only when the locking API makes that the practical option and the failure mode is poison handling rather than normal control flow. - Outside those exceptions, propagate errors, handle them explicitly, or use safer fallbacks instead of
unwrap()andexpect().
Editing Hygiene
- Do not introduce formatting-only changes.
- Do not run repository-wide formatters or reflow unrelated code unless the user explicitly asks for formatting.
- Keep diffs limited to semantic changes required for the task.