rust/tests/ui-toml/toml_disallowed_methods/clippy.toml
flip1995 9b38fb7b71
Also pluralize disallowed_method(s) lint
To stay consistent with the sister lint disallowed_type, also rename the
disallowed_method lint to disallowed_methods.
2021-11-18 17:37:06 +01:00

9 lines
311 B
TOML

disallowed-methods = [
# just a string is shorthand for path only
"std::iter::Iterator::sum",
# 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" },
]