mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 15:41:10 +00:00
04eb27aeaf
Since def_path_str returns e.g. "core::f32::<impl f32>::clamp" for "f32::clamp"
10 lines
357 B
TOML
10 lines
357 B
TOML
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" },
|
|
]
|