summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/toml_disallowed_methods/clippy.toml
blob: 28774db625bb77ff5d72e051850b076686dd7393 (plain)
1
2
3
4
5
6
7
8
9
10
11
disallowed-methods = [
    # just a string is shorthand for path only
    "std::iter::Iterator::sum",
    "f32::clamp",
    "slice::sort_unstable",
    "futures::stream::select_all",
    # 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" },
]