forked from dfinity/ic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clippy.toml
6 lines (6 loc) · 908 Bytes
/
clippy.toml
1
2
3
4
5
6
too-many-arguments-threshold = 12
disallowed-methods = [
{ path = "bincode::deserialize_from" , reason = "bincode::deserialize_from() is not safe to use on untrusted data, since the method will read a u64 length value from the first 8 bytes of the serialized payload and will then attempt to allocate this number of bytes without any validation." },
{ path = "std::io::Write::write" , reason = "`Write::write()` may not write the entire buffer. Use `Write::write_all()` instead. Or, if you are intentionally using `Write::write()`, use `#[allow(clippy::disallowed_methods)]` to locally disable this check." },
{ path = "tokio::io::AsyncWriteExt::write" , reason = "`AsyncWriteExt::write()` may not write the entire buffer. Use `AsyncWriteExt::write_all()` instead. Or, if you are intentionally using `Write::write()`, use `#[allow(clippy::disallowed_methods)]` to locally disable this check." }
]