forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclippy.toml
More file actions
15 lines (13 loc) · 685 Bytes
/
clippy.toml
File metadata and controls
15 lines (13 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
large-error-threshold = 256 # in bytes
allow-unwrap-in-tests = true
# for `disallowed_method`:
# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_method
disallowed-methods = [
{ path = "std::io::Write::write", reason = "This doesn't handle short writes, use `write_all` instead." },
]
disallowed-types = [
{ path = "once_cell::sync::OnceCell", reason = "Use `std::sync::OnceLock` instead." },
{ path = "once_cell::unsync::OnceCell", reason = "Use `std::cell::OnceCell` instead." },
{ path = "once_cell::sync::Lazy", reason = "Use `std::sync::LazyLock` instead." },
{ path = "once_cell::unsync::Lazy", reason = "Use `std::sync::LazyCell` instead." },
]