Skip to content

Commit

Permalink
fix: update tip 11 to mention new Cargo.toml [lints] section
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Apr 26, 2024
1 parent 7e796e6 commit 5071718
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/blog/rust-pro-tips-collection.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Rust Pro Tips (collection)"
date: 2023-04-08
lastmod: 2024-02-10
lastmod: 2024-05-26
description: "Level up your Rust skills."
author: Jacob Lindahl
twitter: sudo_build
Expand Down Expand Up @@ -729,6 +729,15 @@ assert_eq!(my_string, "2468");

## 11. Enforce Clippy lints in a workspace

**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.

```toml
[lints.clippy]
large_digit_groups = "warn"
```

---

[Tweet](https://twitter.com/sudo_build/status/1567168431094468608)

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

0 comments on commit 5071718

Please sign in to comment.