Settings

Theme

Your Rust Clippy Config Should Be Stricter

emschwartz.me

8 points by emschwartz 6 days ago · 1 comment

Reader

stop50 5 days ago

Thats what i implemented for myself. I made myself pre commit hooks for running clippy nightly and deploying my standard lints(clippy and non-clippy). Thanks to jq-lang and the jq-wrapper tomlq it can even work around the lints/workspace.lints difference with little problems.

For myself i have forbidden unwrap/expect, since this can lead to panics. For cases where an unwrap IS unavoidable, i use unsafe {unwrap_unchecked}. The unsafe is to make sure i can't overlook it.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection