forked from TraceMachina/nativelink
-
Notifications
You must be signed in to change notification settings - Fork 1
/
clippy.toml
16 lines (16 loc) · 1.68 KB
/
clippy.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
disallowed-methods = [
{ path = "tokio::spawn", reason = "use `nativelink-util::task::spawn` or `nativelink-util::task::background_spawn` instead" },
{ path = "tokio::task::spawn", reason = "use `nativelink-util::task::spawn` or `nativelink-util::task::background_spawn` instead" },
{ path = "tokio::task::spawn_blocking", reason = "use `nativelink-util::task::spawn_blocking` instead" },
{ path = "tokio::task::block_in_place", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::task::spawn_local", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::runtime::Builder::new_current_thread", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::runtime::Builder::new_multi_thread", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::runtime::Builder::new_multi_thread_alt", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::runtime::Runtime::new", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::runtime::Runtime::spawn", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::runtime::Runtime::spawn_blocking", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "tokio::runtime::Runtime::block_on", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "std::thread::spawn", reason = "use one of the `nativelink-util::task` functions instead" },
{ path = "std::thread::Builder::new", reason = "use one of the `nativelink-util::task` functions instead" },
]