2024-02-08 15:45:17 +00:00
|
|
|
msrv = "1.74" # MSRV
|
2023-03-29 19:33:22 +00:00
|
|
|
warn-on-all-wildcard-imports = true
|
|
|
|
allow-expect-in-tests = true
|
|
|
|
allow-unwrap-in-tests = true
|
|
|
|
allow-dbg-in-tests = true
|
|
|
|
disallowed-methods = [
|
2023-04-18 01:04:56 +00:00
|
|
|
{ path = "std::option::Option::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
|
|
|
|
{ path = "std::option::Option::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
|
|
|
|
{ path = "std::result::Result::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
|
|
|
|
{ path = "std::result::Result::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
|
|
|
|
{ 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 19:33:22 +00:00
|
|
|
]
|