forked from rolldown/rolldown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
49 lines (37 loc) · 2.13 KB
/
clippy.toml
File metadata and controls
49 lines (37 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
too-many-lines-threshold = 200
# We don't have any downstream users, we don't care about external API changes,
# and this makes the codebase cleaner
avoid-breaking-exported-api = false
disallowed-methods = [
{ path = "std::collections::HashMap::new", reason = "prefer FxHashMap", replacement = "rustc_hash::FxHashMap::default" },
{ path = "std::collections::HashSet::new", reason = "prefer FxHashSet", replacement = "rustc_hash::FxHashSet::default" },
]
### await-holding-invalid-types
## we can remove these if https://github.com/xacrimon/dashmap/issues/348 lands
[[await-holding-invalid-types]]
path = "dashmap::mapref::one::Ref"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::mapref::one::RefMut"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::mapref::one::MappedRef"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::mapref::entry::Entry"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::mapref::multiple::RefMulti"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::mapref::multiple::RefMutMulti"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::iter::Iter"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::iter::IterMut"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"
[[await-holding-invalid-types]]
path = "dashmap::iter::OwningIter"
reason = "holding dashmap references will cause deadlocks, if the same thread tries to acquire a reference"