forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclippy.toml
11 lines (11 loc) · 889 Bytes
/
clippy.toml
1
2
3
4
5
6
7
8
9
10
11
disallowed-methods = [
# We have better wrappers for tokio task spawning
{ 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" },
# as well as an extention trait for inherent methods
{ 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" },
]