Commit 6f06921
committed
fix(desktop): allow clippy::print_stderr at terminal error path in main
WHY: `cargo clippy --workspace --all-targets -- -D warnings` (`just ci`)
flagged the bare `eprintln!` in `main.rs:30` introduced when the entry
point gained the runtime-init prelude. The terminal error path in a
binary is the correct place for stderr output before `process::exit(1)`
— same rationale as the CLI's file-level `#![allow(clippy::print_stderr)]`
in `crates/cli/src/main.rs`. Inline-scoped `#[allow]` is preferred here
because the rest of the file should not silently gain print_stderr
suppression.
CI was red on all 3 OS jobs of PR #167 with this lone clippy error.1 parent 78e4bf2 commit 6f06921
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
0 commit comments