-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
27 lines (21 loc) · 801 Bytes
/
clippy.toml
File metadata and controls
27 lines (21 loc) · 801 Bytes
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
msrv = "1.85"
allow-unwrap-in-tests = true
avoid-breaking-exported-api = false
max-fn-params-bools = 2
# https://rust-lang.github.io/rust-clippy/master/index.html#/large_include_file
max-include-file-size = 1000000
# https://rust-lang.github.io/rust-clippy/master/index.html#/type_complexity
type-complexity-threshold = 350
# -----------------------------------------------------------------------------
disallowed-methods = [
"std::env::temp_dir", # Use the tempdir crate instead
"std::thread::spawn", # Use `std::thread::Builder` and name the thread
]
disallowed-names = ["temp"]
disallowed-types = [
# Use the faster & simpler non-poisonable primitives in `parking_lot` instead
"std::sync::Mutex",
"std::sync::RwLock",
"std::sync::Condvar",
# "std::sync::Once",
]