-
-
Notifications
You must be signed in to change notification settings - Fork 788
Expand file tree
/
Copy pathclippy.toml
More file actions
17 lines (15 loc) · 1.28 KB
/
clippy.toml
File metadata and controls
17 lines (15 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
allow-dbg-in-tests = true
allow-unwrap-in-tests = true
disallowed-methods = [
{ path = "str::to_ascii_lowercase", reason = "To avoid memory allocation, use `cow_utils::CowUtils::cow_to_ascii_lowercase` instead." },
{ path = "str::to_ascii_uppercase", reason = "To avoid memory allocation, use `cow_utils::CowUtils::cow_to_ascii_uppercase` instead." },
{ path = "str::to_lowercase", reason = "To avoid memory allocation, use `cow_utils::CowUtils::cow_to_lowercase` instead." },
{ path = "str::to_uppercase", reason = "To avoid memory allocation, use `cow_utils::CowUtils::cow_to_uppercase` instead." },
{ path = "str::replace", reason = "To avoid memory allocation, use `cow_utils::CowUtils::replace` instead." },
{ path = "str::replacen", reason = "To avoid memory allocation, use `cow_utils::CowUtils::replacen` instead." },
{ path = "std::mem::forget", reason = "future::scope is unsafe when used with forget" },
{ path = "futures::executor::block_on", reason = "block_on can cause deadlock easily" },
{ path = "async_std::task::block_on", reason = "block_on can cause deadlock easily" },
{ path = "pollster::block_on", reason = "block_on can cause deadlock easily" },
{ path = "napi::tokio_runtime::block_on", reason = "block_on can cause deadlock easily", allow-invalid = true }
]