Skip to content

Commit 68c612f

Browse files
committed
doc: Shorten one of our doc examples
1 parent 5cd4462 commit 68c612f

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

crates/matrix-sdk/src/encryption/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,11 @@ impl Encryption {
11951195
/// handle.auth(Some(uiaa::AuthData::Password(password))).await?;
11961196
/// }
11971197
/// CrossSigningResetAuthType::Oidc(o) => {
1198-
/// println!("To reset your end-to-end encryption cross-signing identity, you first need to approve it at {}", o.approval_url);
1198+
/// println!(
1199+
/// "To reset your end-to-end encryption cross-signing identity, \
1200+
/// you first need to approve it at {}",
1201+
/// o.approval_url
1202+
/// );
11991203
/// handle.auth(None).await?;
12001204
/// }
12011205
/// }

examples/cross_signing_bootstrap/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ async fn bootstrap(client: Client, user_id: OwnedUserId, password: String) -> Re
2828
handle.auth(Some(uiaa::AuthData::Password(password))).await?;
2929
}
3030
CrossSigningResetAuthType::Oidc(oidc) => {
31-
println!("To reset your end-to-end encryption cross-signing identity, you first need to approve it at {}", oidc.approval_url);
31+
println!(
32+
"To reset your end-to-end encryption cross-signing identity, \
33+
you first need to approve it at {}",
34+
oidc.approval_url
35+
);
3236
handle.auth(None).await?;
3337
}
3438
}

examples/oidc_cli/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,11 @@ impl OidcCli {
417417
unimplemented!("This should never happen, this is after all the OIDC example.")
418418
}
419419
CrossSigningResetAuthType::Oidc(o) => {
420-
println!("To reset your end-to-end encryption cross-signing identity, you first need to approve it at {}", o.approval_url);
420+
println!(
421+
"To reset your end-to-end encryption cross-signing identity, \
422+
you first need to approve it at {}",
423+
o.approval_url
424+
);
421425
handle.auth(None).await?;
422426
}
423427
}

0 commit comments

Comments
 (0)