2021-06-11 21:25:32 +00:00
|
|
|
disallowed-methods = [
|
2021-09-09 01:12:02 +00:00
|
|
|
# just a string is shorthand for path only
|
2021-06-11 21:25:32 +00:00
|
|
|
"std::iter::Iterator::sum",
|
2021-12-09 20:42:44 +00:00
|
|
|
"f32::clamp",
|
|
|
|
"slice::sort_unstable",
|
2022-10-05 13:44:01 +00:00
|
|
|
"futures::stream::select_all",
|
2021-09-09 01:12:02 +00: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" },
|
2022-11-04 21:58:07 +00:00
|
|
|
# local paths
|
|
|
|
"conf_disallowed_methods::local_fn",
|
|
|
|
"conf_disallowed_methods::local_mod::f",
|
|
|
|
"conf_disallowed_methods::Struct::method",
|
|
|
|
"conf_disallowed_methods::Trait::provided_method",
|
|
|
|
"conf_disallowed_methods::Trait::implemented_method",
|
2021-06-11 21:25:32 +00:00
|
|
|
]
|