Эх сурвалжийг харах

Unbreak clippy on current stable, which flags async_trait's must_use

C 1 долоо хоног өмнө
parent
commit
56cd96108d
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      Cargo.toml

+ 5 - 0
Cargo.toml

@@ -36,5 +36,10 @@ tracing = "0.1"
 arithmetic_overflow = "deny"
 missing_docs = "deny"
 
+[workspace.lints.clippy]
+# `async_trait` expands every method to a boxed future and stamps it
+# `#[must_use]`, which the lint then reads as redundant on a `Result`.
+double_must_use = "allow"
+
 [profile.release]
 overflow-checks = true