From 7ead3706a296084696bb11152941532df790bb04 Mon Sep 17 00:00:00 2001 From: objz Date: Thu, 1 Oct 2026 23:48:06 +0200 Subject: [PATCH] fix(ci): scope async-trait lint compatibility to generated traits --- src/instance/content/provider.rs | 4 ++++ src/instance/loader/mod.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/instance/content/provider.rs b/src/instance/content/provider.rs index cb0efba..35e9fc3 100644 --- a/src/instance/content/provider.rs +++ b/src/instance/content/provider.rs @@ -61,6 +61,10 @@ pub struct ResolvedFile { pub project: ProviderProject, } +#[allow( + clippy::double_must_use, + reason = "async_trait adds #[must_use] to generated futures" +)] #[async_trait] pub trait ContentProvider: Send + Sync { fn id(&self) -> &'static str; diff --git a/src/instance/loader/mod.rs b/src/instance/loader/mod.rs index 5c17800..38ce2e1 100644 --- a/src/instance/loader/mod.rs +++ b/src/instance/loader/mod.rs @@ -42,6 +42,10 @@ pub struct GameVersion { pub stable: bool, } +#[allow( + clippy::double_must_use, + reason = "async_trait adds #[must_use] to generated futures" +)] #[async_trait] pub trait ModLoaderInstaller: Send + Sync { fn loader_type(&self) -> ModLoader;