Skip to content

Commit aa9aef4

Browse files
committed
refactor: Rename Oidc::account_management_url to fetch_account_management_url
1 parent f2ad11a commit aa9aef4

File tree

3 files changed

+3
-3
lines changed
  • bindings/matrix-sdk-ffi/src
  • crates/matrix-sdk/src/authentication/oidc
  • examples/oidc_cli/src

3 files changed

+3
-3
lines changed

bindings/matrix-sdk-ffi/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ impl Client {
626626
return Ok(None);
627627
}
628628

629-
match self.inner.oidc().account_management_url(action.map(Into::into)).await {
629+
match self.inner.oidc().fetch_account_management_url(action.map(Into::into)).await {
630630
Ok(url) => Ok(url.map(|u| u.to_string())),
631631
Err(e) => {
632632
tracing::error!("Failed retrieving account management URL: {e}");

crates/matrix-sdk/src/authentication/oidc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ impl Oidc {
625625
/// Returns `Ok(None)` if the URL was not found. Returns an error if the
626626
/// request to get the provider metadata fails or the URL could not be
627627
/// parsed.
628-
pub async fn account_management_url(
628+
pub async fn fetch_account_management_url(
629629
&self,
630630
action: Option<AccountManagementActionFull>,
631631
) -> Result<Option<Url>, OidcError> {

examples/oidc_cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ impl OidcCli {
444444

445445
/// Get the account management URL.
446446
async fn account(&self, action: Option<AccountManagementActionFull>) {
447-
match self.client.oidc().account_management_url(action).await {
447+
match self.client.oidc().fetch_account_management_url(action).await {
448448
Ok(Some(url)) => {
449449
println!("\nTo manage your account, visit: {url}");
450450
}

0 commit comments

Comments
 (0)