Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/litewire-backend/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions crates/litewire-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Loading