We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72078fa commit 857a407Copy full SHA for 857a407
clippy_lints/src/disallowed_type.rs
@@ -21,7 +21,15 @@ declare_clippy_lint! {
21
/// An example clippy.toml configuration:
22
/// ```toml
23
/// # clippy.toml
24
- /// disallowed-types = ["std::collections::BTreeMap"]
+ /// disallowed-types = [
25
+ /// # Can use a string as the path of the disallowed type.
26
+ /// "std::collections::BTreeMap",
27
+ /// # Can also use an inline table with a `path` key.
28
+ /// { path = "std::net::TcpListener" },
29
+ /// # When using an inline table, can add a `reason` for why the type
30
+ /// # is disallowed.
31
+ /// { path = "std::net::Ipv4Addr", reason = "no IPv4 allowed" },
32
+ /// ]
33
/// ```
34
///
35
/// ```rust,ignore
0 commit comments