mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
## Problem `block_in_place` is a quite expensive operation, and if it is used, we should explicitly have to opt into it by allowing the `clippy::disallowed_methods` lint. For more, see https://github.com/neondatabase/neon/pull/5023#discussion_r1304194495. Similar arguments exist for `Handle::block_on`, but we don't do this yet as there is still usages. ## Summary of changes Adds a clippy.toml file, configuring the [`disallowed_methods` lint](https://rust-lang.github.io/rust-clippy/master/#/disallowed_method).
6 lines
192 B
TOML
6 lines
192 B
TOML
disallowed-methods = [
|
|
"tokio::task::block_in_place",
|
|
# Allow this for now, to deny it later once we stop using Handle::block_on completely
|
|
# "tokio::runtime::Handle::block_on",
|
|
]
|