Hey!
I’m a professional software engineer with several years of experience using Rust. Unfortunately I don’t really have the time to contribute to Lemmy directly myself, but I love teaching other people Rust so if:
- You are curious about Rust and why you should even learn it
- You are trying to learn Rust but maybe having a hard time
- You are wondering where to start
- You ran into some specific issue
… or anything to do with Rust really, then feel free to ask in the comments or shoot me a PM 🙂
Nice!
I haven’t used clippy (just rust analyser so far, and the compiler of course) … but I wonder if it’d be nice to have some static analysis that gives some hints about how costly a clone is likely to be, just so you could have some confidence about not cloning where it will actually hurt.
Also, thanks for the reply!
I would recommend changing rust-analyzer “check command” setting from “check” to “clippy”, then you’ll see clippy hints in your editor.
Cheers! So clippy is worth it then?
Oh definitely, it’ll point out if you can do something simpler. The default are fine as well. Honestly don’t know why it’s not just the default to use it.
Cheers! Will do!