Skip to content

Commit 5bdaba9

Browse files
committed
mirror_worker: allow unused_async_trait_impl in commit tests
Rust 1.98 clippy flags the in-memory test ObjectBackend, whose async trait signature requires the impl stay async without an await. Same fix as PR 276 applied to the mirror_worker commit tests.
1 parent 92285c1 commit 5bdaba9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

crates/mirror_worker/src/commit.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ async fn upload_entry_bundle(object: &impl ObjectBackend, n: u64, bytes: Vec<u8>
446446

447447
#[cfg(test)]
448448
mod tests {
449+
// The in-memory test backend implements the async ObjectBackend trait
450+
// without awaiting; the trait signature is `async fn`, so the impl must
451+
// stay `async` to match.
452+
#![allow(clippy::unused_async_trait_impl)]
453+
449454
use super::*;
450455
use std::cell::RefCell;
451456
use std::collections::HashMap;

0 commit comments

Comments
 (0)