yuk1ty / learning-systems-programming-in-rust

「Rustでもわかるシステムプログラミング」
430 stars 23 forks source link

CIでclippyを実行したい #63

Closed laysakura closed 3 years ago

laysakura commented 3 years ago

手元でclippyを実行したら

https://github.com/yuk1ty/learning-systems-programming-in-rust/blob/f0b4a96b43977b8e66ec42f628ac99df2f2849e6/chapter2/src/2_4_3/main.rs#L24:L24

の箇所で

written amount is not handled. Use `Write::write_all` instead
`#[deny(clippy::unused_io_amount)]` on by default
for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount

を検出(自分のレビュー漏れ 🙄 )

こういうのを防ぐためにCIでやっておきたい。