forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clippy.toml
14 lines (12 loc) · 1.09 KB
/
clippy.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
disallowed-methods = [
{ path = "futures_executor::block_on", reason = "tokio::runtime::Handle::block_on instead" },
{ path = "futures::executor::block_on", reason = "tokio::runtime::Handle::block_on instead" },
{ path = "tokio::spawn", reason = "use the spawn wrappers in `mz_ore::task` instead" },
{ path = "tokio::task::spawn", reason = "use the spawn wrappers in `mz_ore::task` instead" },
{ path = "tokio::task::spawn_blocking", reason = "use the spawn wrappers in `mz_ore::task` instead" },
{ path = "tokio::runtime::Handle::spawn", reason = "use the spawn wrappers in `mz_ore::task` instead" },
{ path = "tokio::runtime::Handle::spawn_blocking", reason = "use the spawn wrappers in `mz_ore::task` instead" },
{ path = "tokio::runtime::Runtime::spawn", reason = "use the spawn wrappers in `mz_ore::task` instead" },
{ path = "tokio::runtime::Runtime::spawn_blocking", reason = "use the spawn wrappers in `mz_ore::task` instead" },
{ path = "rdkafka::config::ClientConfig::new", reason = "use the `client::create_new_client_config` wrapper in `kafka_util` instead" },
]