Skip to content

Commit 9d90a92

Browse files
zecakehbnjbvr
authored andcommitted
doc(base): Use different Result type in doc example
`anyhow::Ok(())` doesn't work under WASM because it requires the error types to be `Send + Sync`. Signed-off-by: Kévin Commaille <[email protected]>
1 parent d79975e commit 9d90a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/matrix-sdk-base/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ impl BaseClient {
464464
/// let room = client.room_joined(&room_id, maybe_inviter).await?;
465465
///
466466
/// assert_eq!(room.state(), RoomState::Joined);
467-
/// # anyhow::Ok(()) };
467+
/// # matrix_sdk_test::TestResult::Ok(()) };
468468
/// ```
469469
pub async fn room_joined(
470470
&self,

0 commit comments

Comments
 (0)