-
Notifications
You must be signed in to change notification settings - Fork 67
/
clippy.toml
67 lines (51 loc) · 2.61 KB
/
clippy.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[[disallowed-methods]]
path = "futures::executor::block_on"
reason = "calling asynchronous code from synchronous code is almost always an error, use `tokio::runtime::Handle::current().block_on` if it's not an error"
[[disallowed-methods]]
path = "futures_executor::block_on"
reason = "calling asynchronous code from synchronous code is almost always an error, use `tokio::runtime::Handle::current().block_on` if it's not an error"
[[disallowed-methods]]
path = "gloo_timers::future::sleep"
reason = "use `nimiq_time::sleep` instead, it is also supported in non-WASM environments"
[[disallowed-methods]]
path = "tokio::task::spawn"
reason = "use `nimiq_utils::spawn` instead, it is also supported in WASM environments"
[[disallowed-methods]]
path = "tokio::task::spawn_local"
reason = "use `nimiq_utils::spawn_local` instead, it is also supported in WASM environments"
[[disallowed-methods]]
path = "wasm_bindgen_futures::spawn_local"
reason = "use `nimiq_utils::spawn` or `nimq_utils::spawn_local` instead, it is also supported in non-WASM environments"
[[disallowed-methods]]
path = "tokio::time::interval"
reason = "use `nimiq_time::interval` instead, it is also supported in WASM environments"
[[disallowed-methods]]
path = "tokio::time::interval_at"
reason = "use `nimiq_time::interval` instead, it is also supported in WASM environments"
[[disallowed-methods]]
path = "tokio::time::sleep"
reason = "use `nimiq_time::sleep` instead, it is also supported in WASM environments"
[[disallowed-methods]]
path = "tokio::time::sleep_until"
reason = "use `nimiq_time::sleep_until` instead, it is also supported in WASM environments"
[[disallowed-methods]]
path = "tokio::time::timeout"
reason = "use `nimiq_time::timeout` instead, it is also supported in WASM environments"
[[disallowed-types]]
path = "futures_util::stream::FuturesUnordered"
reason = "use `nimiq_utils::stream::FuturesUnordered` instead, it does not need manual `Waker`s"
[[disallowed-types]]
path = "futures_util::stream::FuturesOrdered"
reason = "use `nimiq_utils::stream::FuturesOrdered` instead, it does not need manual `Waker`s"
[[disallowed-types]]
path = "futures_util::stream::SelectAll"
reason = "use `nimiq_utils::stream::SelectAll` instead, it does not need manual `Waker`s"
[[disallowed-types]]
path = "futures_timer::Delay"
reason = "use `nimiq_time::sleep` instead"
[[disallowed-types]]
path = "gloo_timers::future::IntervalStream"
reason = "use `nimiq_time::interval` instead, it is also supported in non-WASM environments"
[[disallowed-types]]
path = "gloo_timers::future::TimeoutFuture"
reason = "use `nimiq_time::timeout` instead, it is also supported in non-WASM environments"