Improve Your Code With Linting

preview_player
Показать описание
Today we will talk about how to improve your Rust code with Linting.

Chapters:
0:00 Intro
0:44 rustc linter
1:05 Lint levels
2:22 Lint attributes
3:41 Clippy
4:50 Outro

#rust #programming #tutorial
Рекомендации по теме
Комментарии
Автор

Clippy is even available on the rust playground under tools. Its awesome. Just don't be overwhelmed when you run it the first time. Your program may run fine as is and have no real errors but it will still give you a LOT of code improvement suggestions. You don't have to fix every clippy hit but you can be sure your code is pretty much idiomatic if you do.

daque
Автор

Thanks for explaining clippy. I knew about it but never tried it before. Seems like it's going to be very useful for some of my larger projects.

scheimong
Автор

5 seconds before you said thats a bit boring I was like dude thats sick

ruzgaredit
Автор

What you think about rust in competitive programming

daniyal
Автор

The perfect amount of info for my old brain.

mageprometheus
Автор

What the actual hell is this microphone.

Tomyk
Автор

I recommend pedantic clippy:

cargo clippy -- -D warnings -W clippy::pedantic

thingsiplay
Автор

Very informative and concise video, but please try to not speak like a text-to-speech program.

error-