-
Notifications
You must be signed in to change notification settings - Fork 40
/
clippy.toml
19 lines (18 loc) · 1.03 KB
/
clippy.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
disallowed-methods = [
# `ON CONFLICT ... WHERE ... DO UPDATE` is easy to misuse.
#
# If you mean a conditional upsert, import
# diesel::query_dsl::methods::FilterDsl, then use
# `do_update().set(...).filter(...)`. (This is not part of the
# documentation as of Diesel 2.1.4, but it works.)
#
# If you mean to specify a bound on a partial index, use the
# `IncompleteOnConflictExt::as_partial_index` in `nexus-db-queries`.
# See the documentation of that method for more.
"diesel::upsert::DecoratableTarget::filter_target",
# This form of transaction is susceptible to serialization failures,
# and can fail spuriously.
# Instead, the "transaction_retry_wrapper" should be preferred, as it
# automatically retries transactions experiencing contention.
{ path = "async_bb8_diesel::AsyncConnection::transaction_async", reason = "Prefer to use transaction_retry_wrapper, if possible. For tests and nested transactions, use transaction_non_retry_wrapper to at least get dtrace probes" },
]