diff --git a/compliance-agent/tests/inbox.rs b/compliance-agent/tests/inbox.rs index fc1dd01..245c2ea 100644 --- a/compliance-agent/tests/inbox.rs +++ b/compliance-agent/tests/inbox.rs @@ -357,7 +357,7 @@ async fn the_inbox_buckets_decides_undoes_and_resubmits() { assert_eq!(record.by, "dev-user"); assert!(record.until > Utc::now() + Duration::days(6)); // The card's items are recorded, so a new one would end the snooze early. - assert_eq!(record.items, [secret.clone()]); + assert_eq!(record.items, std::slice::from_ref(&secret)); db.collection::("inbox_snoozes") .update_one( doc! { "key": &secret_key },