doc: Shorten one of our doc examples

This commit is contained in:
Damir Jelić
2024-07-26 12:54:03 +02:00
parent 5bbe022e97
commit 4fdc78f565
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -1195,7 +1195,11 @@ impl Encryption {
/// handle.auth(Some(uiaa::AuthData::Password(password))).await?;
/// }
/// CrossSigningResetAuthType::Oidc(o) => {
/// println!("To reset your end-to-end encryption cross-signing identity, you first need to approve it at {}", o.approval_url);
/// println!(
/// "To reset your end-to-end encryption cross-signing identity, \
/// you first need to approve it at {}",
/// o.approval_url
/// );
/// handle.auth(None).await?;
/// }
/// }
+5 -1
View File
@@ -28,7 +28,11 @@ async fn bootstrap(client: Client, user_id: OwnedUserId, password: String) -> Re
handle.auth(Some(uiaa::AuthData::Password(password))).await?;
}
CrossSigningResetAuthType::Oidc(oidc) => {
println!("To reset your end-to-end encryption cross-signing identity, you first need to approve it at {}", oidc.approval_url);
println!(
"To reset your end-to-end encryption cross-signing identity, \
you first need to approve it at {}",
oidc.approval_url
);
handle.auth(None).await?;
}
}
+5 -1
View File
@@ -417,7 +417,11 @@ impl OidcCli {
unimplemented!("This should never happen, this is after all the OIDC example.")
}
CrossSigningResetAuthType::Oidc(o) => {
println!("To reset your end-to-end encryption cross-signing identity, you first need to approve it at {}", o.approval_url);
println!(
"To reset your end-to-end encryption cross-signing identity, \
you first need to approve it at {}",
o.approval_url
);
handle.auth(None).await?;
}
}