From 0f8b8625bd309721099002813b8db9290b2bb411 Mon Sep 17 00:00:00 2001 From: Michael Schubart Date: Sun, 1 Oct 2023 16:32:16 +0100 Subject: [PATCH] Fix documentation link The file pointed to by the old link https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L110 did not talk about categories and levels. The new link (hopefully) points here https://doc.rust-lang.org/stable/clippy/ which has a nice table explaining the mappings. --- book/src/development/adding_lints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/development/adding_lints.md b/book/src/development/adding_lints.md index f6f0c95c7..e00119784 100644 --- a/book/src/development/adding_lints.md +++ b/book/src/development/adding_lints.md @@ -261,7 +261,7 @@ impl EarlyLintPass for FooFunctions {} [declare_clippy_lint]: https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L60 [example_lint_page]: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints -[category_level_mapping]: https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L110 +[category_level_mapping]: ../index.html ## Lint registration