2023-03-31 20:32:08 -04:00
|
|
|
msrv = "1.65.0" # MSRV
|
2023-03-29 15:33:22 -04:00
|
|
|
warn-on-all-wildcard-imports = true
|
|
|
|
allow-expect-in-tests = true
|
|
|
|
allow-unwrap-in-tests = true
|
|
|
|
allow-dbg-in-tests = true
|
|
|
|
allow-print-in-tests = true
|
|
|
|
disallowed-methods = [
|
|
|
|
{ path = "std::option::Option::map_or", reason = "use `map(..).unwrap_or(..)`" },
|
|
|
|
{ path = "std::option::Option::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
|
|
|
|
{ path = "std::result::Result::map_or", reason = "use `map(..).unwrap_or(..)`" },
|
|
|
|
{ path = "std::result::Result::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
|
2023-04-17 21:03:56 -04:00
|
|
|
{ path = "std::iter::Iterator::for_each", reason = "prefer `for` for side-effects" },
|
|
|
|
{ path = "std::iter::Iterator::try_for_each", reason = "prefer `for` for side-effects" },
|
2023-03-29 15:33:22 -04:00
|
|
|
]
|