doc: Shorten one of our doc examples
This commit is contained in:
@@ -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?;
|
||||
/// }
|
||||
/// }
|
||||
|
||||
@@ -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?;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user