Building a small personal project in #Rust to teach myself the language. As I was looking over my code, I noticed a mistake I'd made that technically worked, but was kind of silly so I fixed it.
This got me to wondering if Rust had a linter (it does) because surely I'd made other similar rookie mistakes. I found the linter and ran it on my project. It came back with one result that I already knew about: a value in a struct that doesn't get read because I haven't written that code yet. That was it.
I was surprised. It's still a very small project, but perhaps I'm a more competent developer than I give myself credit for.
reshared this
Joel Michael
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to Joel Michael • •Codrus ๐บ๐ฒ
in reply to Jonathan Lamothe • • •@jpm `rustc` itself has built-in lints. There's also MIRI, and some other static analysis tools...
github.com/rust-lang/miri
GitHub - rust-lang/miri: An interpreter for Rust's mid-level intermediate representation
GitHubDylan :heart_nb:
in reply to Jonathan Lamothe • • •Jonathan Lamothe likes this.
Jonathan Lamothe
in reply to Dylan :heart_nb: • •Dylan :heart_nb:
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to Jonathan Lamothe • •