fix: allow async-trait must-use compatibility lint

This commit is contained in:
archipelago
2026-10-09 08:43:56 -04:00
parent c6f8308e9a
commit 48c13adaca
+4
View File
@@ -38,6 +38,10 @@ pub fn stop_grace_secs_for(container_name: &str) -> u64 {
} }
} }
// Rust 1.99 treats the boxed Future generated by async-trait as must-use and
// also sees the macro's own must-use marker. Keep the compatibility allowance
// scoped to this generated trait surface; callers still cannot ignore Result.
#[allow(clippy::double_must_use)]
#[async_trait] #[async_trait]
pub trait ContainerRuntime: Send + Sync { pub trait ContainerRuntime: Send + Sync {
/// CLI used for offline app provisioning in this runtime's storage scope. /// CLI used for offline app provisioning in this runtime's storage scope.