2021-07-01 18:17:38 +02:00
|
|
|
disallowed-methods = [
|
2021-09-28 18:03:12 +01:00
|
|
|
# just a string is shorthand for path only
|
2021-07-01 18:17:38 +02:00
|
|
|
"std::iter::Iterator::sum",
|
2021-09-28 18:03:12 +01:00
|
|
|
# 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" },
|
2021-07-01 18:17:38 +02:00
|
|
|
]
|