-
Notifications
You must be signed in to change notification settings - Fork 135
Expand file tree
/
Copy pathclippy.toml
More file actions
15 lines (14 loc) · 862 Bytes
/
clippy.toml
File metadata and controls
15 lines (14 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
allow-dbg-in-tests = true
allow-expect-in-tests = true
allow-unwrap-in-tests = true
allow-panic-in-tests = true
single-char-binding-names-threshold = 2
disallowed-types = [
{ path = "std::collections::HashMap", reason = "Use the HashMap in vortex_utils::aliases for better performance" },
{ path = "std::collections::HashSet", reason = "Use the HashSet in vortex_utils::aliases for better performance" },
{ path = "std::sync::Mutex", reason = "Prefer using parking_lot Mutex for improved ergonomics and performance" },
{ path = "std::sync::RwLock", reason = "Prefer using parking_lot RwLock for improved ergonomics and performance" },
]
disallowed-methods = [
{ path = "itertools::Itertools::counts", reason = "It uses the default hasher which is slow for primitives. Just inline the loop for better performance.", allow-invalid = true },
]