From 5128324f8ee0f8ba63ec27f40be2f8c630533898 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 20 Nov 2024 11:41:20 +0200 Subject: [PATCH] rename method --- src/app/browser/window/tab/item/identity/gemini.rs | 4 ++-- src/profile/identity/gemini/auth.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/browser/window/tab/item/identity/gemini.rs b/src/app/browser/window/tab/item/identity/gemini.rs index 33441556..14646521 100644 --- a/src/app/browser/window/tab/item/identity/gemini.rs +++ b/src/app/browser/window/tab/item/identity/gemini.rs @@ -85,12 +85,12 @@ impl Gemini { .unwrap(), // @TODO }; - // Apply identity for given `auth_uri` + // Activate identity for given `auth_uri` profile .identity .gemini .auth - .apply(profile_identity_gemini_id, auth_url.as_str()) + .activate(profile_identity_gemini_id, auth_url.as_str()) .unwrap(); //@TODO handle errors // Reload page diff --git a/src/profile/identity/gemini/auth.rs b/src/profile/identity/gemini/auth.rs index d4bffd72..4114685e 100644 --- a/src/profile/identity/gemini/auth.rs +++ b/src/profile/identity/gemini/auth.rs @@ -41,7 +41,7 @@ impl Auth { /// * deactivate active auth by remove previous records from `Self` database /// * reindex `Self` memory index on success /// * return last insert `profile_identity_gemini_auth_id` on success - pub fn apply(&self, profile_identity_gemini_id: i64, url: &str) -> Result { + pub fn activate(&self, profile_identity_gemini_id: i64, url: &str) -> Result { // Get all records match request match self.database.records(Some(url)) { Ok(records) => {