Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Rust High Performance

You're reading from   Rust High Performance Learn to skyrocket the performance of your Rust applications

Arrow left icon
Product type Paperback
Published in Mar 2018
Publisher Packt
ISBN-13 9781788399487
Length 272 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Iban Eguia Moraza Iban Eguia Moraza
Author Profile Icon Iban Eguia Moraza
Iban Eguia Moraza
Arrow right icon
View More author details
Toc

Lints and Clippy

Up until now, we needed to check all the details of the code by ourselves. This can often get out of control, since we cannot be checking each line of code. In this chapter, you will learn about the lints Rust brings us, both the ones enabled by default and the ones you can enable yourself.

Moreover, you will learn about a great tool, Clippy, that will give you many more lints you can use, and that can help you write much better code. In many cases, it will lint about performance pitfalls. In other cases, they will be potential errors or idiomatic conventions. It will also help you clean your code.

In this chapter, you will learn about the following topics:

  • Linting in Rust
  • Default lints
  • Using and configuring Clippy
  • Extra Clippy lints
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image