]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/doc/adding_lints.md
BPF: review fixes
[rust.git] / src / tools / clippy / doc / adding_lints.md
index d6cc6d0c2c76394842dd80d085e811bf96b78725..5a06afedbf4c2e7b86afff20847a30456b7a6d41 100644 (file)
@@ -454,7 +454,7 @@ in `clippy_lints/src/utils/conf.rs`:
 ```rust
 define_Conf! {
     /// Lint: LIST, OF, LINTS, <THE_NEWLY_ADDED_LINT>. The minimum rust version that the project supports
-    (msrv, "msrv": Option<String>, None),
+    (msrv: Option<String> = None),
     ...
 }
 ```
@@ -562,7 +562,7 @@ in the following steps:
     like this:
     ```rust
     /// Lint: LINT_NAME. <The configuration field doc comment>
-    (configuration_ident, "configuration_value": Type, DefaultValue),
+    (configuration_ident: Type = DefaultValue),
     ```
     The configuration value and identifier should usually be the same. The doc comment will be
     automatically added to the lint documentation.