Skip to content

Commit 1a761ca

Browse files
committed
doc: fixing a doc example in the mocks
1 parent 9786eb2 commit 1a761ca

File tree

1 file changed

+6
-8
lines changed
  • crates/matrix-sdk/src/test_utils/mocks

1 file changed

+6
-8
lines changed

crates/matrix-sdk/src/test_utils/mocks/mod.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,24 +1024,22 @@ impl MatrixMockServer {
10241024
///
10251025
/// ```
10261026
/// tokio_test::block_on(async {
1027-
/// use matrix_sdk::{
1028-
/// ruma::room_id,
1029-
/// test_utils::mocks::MatrixMockServer,
1030-
/// };
1027+
/// use matrix_sdk::test_utils::mocks::MatrixMockServer;
10311028
///
10321029
/// let mock_server = MatrixMockServer::new().await;
10331030
/// let client = mock_server.client_builder().build().await;
10341031
///
1035-
/// mock_server.mock_global_account_data()..ok(
1032+
/// mock_server.mock_global_account_data().ok(
10361033
/// client.user_id().unwrap(),
10371034
/// ruma::events::GlobalAccountDataEventType::MediaPreviewConfig,
10381035
/// json!({
10391036
/// "media_previews": "private",
10401037
/// "invite_avatars": "off"
10411038
/// })
1042-
/// .mock_once()
1043-
/// .mount()
1044-
/// .await;
1039+
/// )
1040+
/// .mock_once()
1041+
/// .mount()
1042+
/// .await;
10451043
///
10461044
/// # anyhow::Ok(()) });
10471045
/// ```

0 commit comments

Comments
 (0)