Skip to content

Commit 5071718

Browse files
committed
fix: update tip 11 to mention new Cargo.toml [lints] section
1 parent 7e796e6 commit 5071718

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/blog/rust-pro-tips-collection.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Rust Pro Tips (collection)"
33
date: 2023-04-08
4-
lastmod: 2024-02-10
4+
lastmod: 2024-05-26
55
description: "Level up your Rust skills."
66
author: Jacob Lindahl
77
twitter: sudo_build
@@ -729,6 +729,15 @@ assert_eq!(my_string, "2468");
729729

730730
## 11. Enforce Clippy lints in a workspace
731731

732+
**Update**: As of Rust 1.74, [Clippy lints can now be configured in `Cargo.toml`](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html#lint-configuration-through-cargo). While the method originally described in this tip is still available, `Cargo.toml` is likely a more convenient way to configure lints.
733+
734+
```toml
735+
[lints.clippy]
736+
large_digit_groups = "warn"
737+
```
738+
739+
---
740+
732741
[Tweet](https://twitter.com/sudo_build/status/1567168431094468608)
733742

734743
Enforce a consistent set of Clippy lints across multiple crates in one workspace by adding to `.cargo/config.toml` at the project root.

0 commit comments

Comments
 (0)