thombles / ax25-rs

Utilities for Packet Radio in Rust. AX.25 encoding/decoding and radio interfacing.
Apache License 2.0
54 stars 10 forks source link

Fix clippy errors and improve CI lints #4

Closed thombles closed 3 years ago

thombles commented 3 years ago

I learnt today that Clippy doesn't report error/warnings after cargo check, which meant that the GitHub Action I had defined was ineffective. I've introduced a cargo clean step to ensure the build will fail if we don't keep clippy happy.

In my most recent PR I standardised on the form Err(...)?; but clippy doesn't recommend this so I've gone back to the return form in all cases.

In addition, I'm adding a check to make sure that code is formatted according to rustfmt. In my experience this is useful to avoid needless merge conflicts (and arguments), and we can rely on the "skip" macro if there's anything that really deserves to have its whitespace left intact.