Sfoglia il codice sorgente

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

C 1 settimana fa
parent
commit
56cd96108d
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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