mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 21:52:30 -04:00
fix(ci): Fix unused import warnings on macos
This commit is contained in:
committed by
GitHub
parent
afda63f9e2
commit
08951e1c56
@@ -676,7 +676,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[async_test]
|
||||
#[cfg(any(target_os = "linux", target_arch = "wasm32"))]
|
||||
#[cfg(any(target_os = "linux", target_os = "macos", target_arch = "wasm32"))]
|
||||
async fn expiration() -> Result<(), MegolmError> {
|
||||
use ruma::SecondsSinceUnixEpoch;
|
||||
|
||||
|
||||
@@ -529,9 +529,9 @@ impl VerificationMachine {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::{sync::Arc, time::Duration};
|
||||
use std::sync::Arc;
|
||||
|
||||
use matrix_sdk_common::{instant::Instant, locks::Mutex};
|
||||
use matrix_sdk_common::locks::Mutex;
|
||||
use matrix_sdk_test::async_test;
|
||||
use ruma::TransactionId;
|
||||
|
||||
@@ -644,6 +644,10 @@ mod tests {
|
||||
#[allow(unknown_lints, clippy::unchecked_duration_subtraction)]
|
||||
#[async_test]
|
||||
async fn timing_out() {
|
||||
use std::time::Duration;
|
||||
|
||||
use matrix_sdk_common::instant::Instant;
|
||||
|
||||
let (alice_machine, bob) = setup_verification_machine().await;
|
||||
let alice = alice_machine.get_sas(bob.user_id(), bob.flow_id().as_str()).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user