diff --git a/crates/litewire-backend/src/auth.rs b/crates/litewire-backend/src/auth.rs index 7e5c3ca..3c5f0a0 100644 --- a/crates/litewire-backend/src/auth.rs +++ b/crates/litewire-backend/src/auth.rs @@ -111,6 +111,10 @@ pub struct AuthRequest<'a> { /// /// See the [module docs](self) for the security contract — in particular, why /// returning a backend chosen from `username` alone is not isolation. +#[allow( + clippy::double_must_use, + reason = "async_trait emits a bare #[must_use] on methods returning a boxed Future (already must_use); clippy 1.99" +)] #[async_trait::async_trait] pub trait ConnectionAuthenticator: Send + Sync + 'static { /// Verify `req` and return the backend this connection may use. diff --git a/crates/litewire-backend/src/lib.rs b/crates/litewire-backend/src/lib.rs index da95aa4..faeae7e 100644 --- a/crates/litewire-backend/src/lib.rs +++ b/crates/litewire-backend/src/lib.rs @@ -109,6 +109,10 @@ pub enum BackendError { /// Implementations must be `Send + Sync` because wire frontends move them /// across `.await` points and (in some frontends) hand them to spawned /// tasks. +#[allow( + clippy::double_must_use, + reason = "async_trait emits a bare #[must_use] on methods returning a boxed Future (already must_use); clippy 1.99" +)] #[async_trait::async_trait] pub trait BackendConn: Send + Sync { /// Execute a query that returns rows. @@ -145,6 +149,10 @@ pub trait BackendConn: Send + Sync { /// for callers that do not need transactions (metrics wrappers, one-off /// probes). They open a fresh `BackendConn` per call and drop it -- do **not** /// use them for BEGIN/COMMIT sequences. +#[allow( + clippy::double_must_use, + reason = "async_trait emits a bare #[must_use] on methods returning a boxed Future (already must_use); clippy 1.99" +)] #[async_trait::async_trait] pub trait Backend: Send + Sync + 'static { /// Open a new session against the underlying storage.