diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs index 2ca1b632..d8bc0dcb 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs @@ -37,11 +37,7 @@ impl List { match profile.identity.gemini.database.records() { Ok(identities) => { for identity in identities { - match Item::new_profile_identity_gemini_id( - profile.clone(), - identity.id, - auth_url, - ) { + match Item::new_profile_identity_gemini_id(&profile, identity.id, auth_url) { Ok(item) => list_store.append(&item), Err(_) => todo!(), } diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs index b4fd45d6..b2764929 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/list/item.rs @@ -54,7 +54,7 @@ impl Item { } pub fn new_profile_identity_gemini_id( - profile: Rc, + profile: &Rc, profile_identity_gemini_id: i64, auth_url: &str, ) -> Result { @@ -68,7 +68,7 @@ impl Item { // Extract certificate details from PEM string Ok(ref pem) => match TlsCertificate::from_pem(pem) { // Collect certificate scopes for item - Ok(ref certificate) => match scope(&profile, profile_identity_gemini_id) { + Ok(ref certificate) => match scope(profile, profile_identity_gemini_id) { // Ready to build `Item` GObject Ok(ref scope) => Ok(Object::builder() .property("value", profile_identity_gemini_id) @@ -87,7 +87,7 @@ impl Item { .property( "is_active", is_active::new_for_profile_identity_gemini_id( - &profile, + profile, profile_identity_gemini_id, auth_url, ),