From 78282bf1e155b33b22cd01b3f72ba9a20b038da3 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 3 Mar 2025 17:17:14 +0200 Subject: [PATCH] chore(sdk-base): fix typos following `typos` crate bump to `1.30.0` --- crates/matrix-sdk-base/src/sliding_sync.rs | 8 ++++---- testing/matrix-sdk-test/src/test_json/sync.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/matrix-sdk-base/src/sliding_sync.rs b/crates/matrix-sdk-base/src/sliding_sync.rs index c044a7abd..094ac845a 100644 --- a/crates/matrix-sdk-base/src/sliding_sync.rs +++ b/crates/matrix-sdk-base/src/sliding_sync.rs @@ -2502,10 +2502,10 @@ mod tests { ) } - fn make_raw_event(typ: &str, id: &str) -> Raw { + fn make_raw_event(event_type: &str, id: &str) -> Raw { Raw::from_json_string( json!({ - "type": typ, + "type": event_type, "event_id": id, "content": { "msgtype": "m.text", "body": "my msg" }, "sender": "@u:h.uk", @@ -2517,8 +2517,8 @@ mod tests { } #[cfg(feature = "e2e-encryption")] - fn make_event(typ: &str, id: &str) -> TimelineEvent { - TimelineEvent::new(make_raw_event(typ, id)) + fn make_event(event_type: &str, id: &str) -> TimelineEvent { + TimelineEvent::new(make_raw_event(event_type, id)) } #[cfg(feature = "e2e-encryption")] diff --git a/testing/matrix-sdk-test/src/test_json/sync.rs b/testing/matrix-sdk-test/src/test_json/sync.rs index 8ad287bb2..0cb611ee1 100644 --- a/testing/matrix-sdk-test/src/test_json/sync.rs +++ b/testing/matrix-sdk-test/src/test_json/sync.rs @@ -1502,7 +1502,7 @@ pub static VOIP_SYNC: Lazy = Lazy::new(|| { "call_id": "12345", "candidates": [ { - "candidate": "candidate:863018703 1 udp 2122260223 10.9.64.156 43670 typ host generation 0", + "candidate": "candidate:863018703 1 udp 2122260223 10.9.64.156 43670 type host generation 0", "sdpMLineIndex": 0, "sdpMid": "audio" }