diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/tests/ui-toml/toml_disallowed_methods/clippy.toml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui-toml/toml_disallowed_methods/clippy.toml b/src/tools/clippy/tests/ui-toml/toml_disallowed_methods/clippy.toml new file mode 100644 index 000000000..c902d2112 --- /dev/null +++ b/src/tools/clippy/tests/ui-toml/toml_disallowed_methods/clippy.toml @@ -0,0 +1,10 @@ +disallowed-methods = [ + # just a string is shorthand for path only + "std::iter::Iterator::sum", + "f32::clamp", + "slice::sort_unstable", + # can give path and reason with an inline table + { path = "regex::Regex::is_match", reason = "no matching allowed" }, + # can use an inline table but omit reason + { path = "regex::Regex::new" }, +] |