Skip to content

Commit 6606703

Browse files
committed
docs(base): Remove anyhow from an example since it isn't used
1 parent 0c35d88 commit 6606703

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

crates/matrix-sdk-base/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ default-features = false
5050
features = ["sync", "fs"]
5151

5252
[dev-dependencies]
53-
anyhow = "1.0.45"
5453
futures = { version = "0.3.15", default-features = false }
5554
http = "0.2.4"
5655
matrix-sdk-test = { version = "0.4.0", path = "../matrix-sdk-test" }

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,13 @@ use serde::{Deserialize, Serialize};
2727
/// use matrix_sdk_base::Session;
2828
/// use ruma::{DeviceIdBox, user_id};
2929
///
30-
/// # fn main() -> anyhow::Result<()> {
3130
/// let session = Session {
3231
/// access_token: "My-Token".to_owned(),
3332
/// user_id: user_id!("@example:localhost"),
3433
/// device_id: DeviceIdBox::from("MYDEVICEID"),
3534
/// };
3635
///
3736
/// assert_eq!(session.device_id.as_str(), "MYDEVICEID");
38-
///
39-
/// # Ok(())
40-
/// # }
4137
/// ```
4238
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
4339
pub struct Session {

0 commit comments

Comments
 (0)