]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui-toml/toml_disallowed_type/clippy.toml
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / tools / clippy / tests / ui-toml / toml_disallowed_type / clippy.toml
index dac4446703b0f5e24977580aa667815b866b286f..6cb9e2ef95467be59c0ba74c9dc8d25de2411c09 100644 (file)
@@ -7,5 +7,9 @@ disallowed-types = [
     "std::time::Instant",
     "std::io::Read",
     "std::primitive::usize",
-    "bool"
+    "bool",
+    # can give path and reason with an inline table
+    { path = "std::net::Ipv4Addr", reason = "no IPv4 allowed" },
+    # can use an inline table but omit reason
+    { path = "std::net::TcpListener" },
 ]