forked from get10101/itchysats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclippy.toml
9 lines (9 loc) · 829 Bytes
/
clippy.toml
1
2
3
4
5
6
7
8
9
disallowed-methods = [
{ path = "xtra::Address::do_send_async", reason = "discards the return value, possibly swallowing an error" },
{ path = "xtra::Address::do_send", reason = "discards the return value, possibly swallowing an error" },
{ path = "xtra::message_channel::MessageChannel::do_send", reason = "discards the return value, possibly swallowing an error" },
{ path = "xtra::Context::notify_interval", reason = "does not wait for response from the previous handler, prefer `xtra_ext::Address::send_interval`" },
{ path = "tokio::spawn", reason = "tasks can outlive the actor system, prefer spawn_with_handle()" },
{ path = "tokio::time::sleep", reason = "is not instrumented, prefer tokio_extras::sleep" },
{ path = "tokio::time::timeout", reason = "is not instrumented, prefer tokio_extras::timeout" },
]