mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-22 21:59:59 +00:00
## Problem The proxy denies using `unwrap()`s in regular code, but we want to use it in test code and so have to allow it for each test block. ## Summary of changes Set `allow-unwrap-in-tests = true` in clippy.toml and remove all exceptions.
17 lines
472 B
TOML
17 lines
472 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",
|
|
# use tokio_epoll_uring_ext instead
|
|
"tokio_epoll_uring::thread_local_system",
|
|
]
|
|
|
|
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
|