mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
Before this PR, macOS builds would get clippy warning ``` warning: `tokio_epoll_uring::thread_local_system` does not refer to an existing function ``` The reason is that the `thread_local_system` function is only defined on Linux. Add `allow-invalid = true` to make macOS clippy pass, and manually test that on Linux builds, clippy still fails when we use it. refs - https://databricks.slack.com/archives/C09254R641L/p1751917655527099 Co-authored-by: Christian Schwarz <Christian Schwarz>
20 lines
625 B
TOML
20 lines
625 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",
|
|
|
|
# tokio-epoll-uring:
|
|
# - allow-invalid because the method doesn't exist on macOS
|
|
{ path = "tokio_epoll_uring::thread_local_system", replacement = "tokio_epoll_uring_ext module inside pageserver crate", allow-invalid = true }
|
|
]
|
|
|
|
disallowed-macros = [
|
|
# use std::pin::pin
|
|
"futures::pin_mut",
|
|
# cannot disallow this, because clippy finds used from tokio macros
|
|
#"tokio::pin",
|
|
]
|
|
|
|
allow-unwrap-in-tests = true
|