Skip to content

Commit 69ac7e0

Browse files
committed
crypto: Fix warnings in integration tests
1 parent ee23839 commit 69ac7e0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/matrix-sdk-crypto/src/store/integration_tests.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ macro_rules! cryptostore_integration_tests {
299299
get_loaded_store("mark_inbound_group_sessions_as_backed_up").await;
300300
let room_id = &room_id!("!test:localhost");
301301
let mut sessions: Vec<InboundGroupSession> = Vec::with_capacity(10);
302-
for i in 0..10 {
302+
for _i in 0..10 {
303303
sessions.push(account.create_group_session_pair_with_defaults(room_id).await.1);
304304
}
305305
let changes = Changes { inbound_group_sessions: sessions.clone(), ..Default::default() };
@@ -311,7 +311,7 @@ macro_rules! cryptostore_integration_tests {
311311
}
312312

313313
// When I mark some as backed up
314-
let x = store.mark_inbound_group_sessions_as_backed_up(&[
314+
store.mark_inbound_group_sessions_as_backed_up(&[
315315
session_info(&sessions[1]),
316316
session_info(&sessions[3]),
317317
session_info(&sessions[5]),
@@ -377,7 +377,7 @@ macro_rules! cryptostore_integration_tests {
377377
let room_id = &room_id!("!test:localhost");
378378
let (_, session) = account.create_group_session_pair_with_defaults(room_id).await;
379379

380-
let mut export = session.export().await;
380+
let export = session.export().await;
381381

382382
let session = InboundGroupSession::from_export(&export).unwrap();
383383

@@ -398,7 +398,7 @@ macro_rules! cryptostore_integration_tests {
398398
.unwrap()
399399
.unwrap();
400400
assert_eq!(session, loaded_session);
401-
let export = loaded_session.export().await;
401+
loaded_session.export().await;
402402

403403
assert_eq!(store.get_inbound_group_sessions().await.unwrap().len(), 1);
404404
assert_eq!(store.inbound_group_session_counts().await.unwrap().total, 1);
@@ -849,7 +849,7 @@ macro_rules! cryptostore_integration_tests {
849849

850850
#[async_test]
851851
async fn room_settings_saving() {
852-
let (account, store) = get_loaded_store("room_settings_saving").await;
852+
let (_, store) = get_loaded_store("room_settings_saving").await;
853853

854854
let room_1 = room_id!("!test_1:localhost");
855855
let settings_1 = RoomSettings {
@@ -914,7 +914,7 @@ macro_rules! cryptostore_integration_tests {
914914

915915
#[async_test]
916916
async fn custom_value_saving() {
917-
let (account, store) = get_loaded_store("custom_value_saving").await;
917+
let (_, store) = get_loaded_store("custom_value_saving").await;
918918
store.set_custom_value("A", "Hello".as_bytes().to_vec()).await.unwrap();
919919

920920
let loaded_1 = store.get_custom_value("A").await.unwrap();

0 commit comments

Comments
 (0)