From 5e8c3a10cf528fe622543f9bc6d88eebb2256f28 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 4 Jun 2022 20:58:31 +0530 Subject: [PATCH] fix: explicit forge_core::User usage to avoid namespace conflicts --- forge/gitea/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge/gitea/src/lib.rs b/forge/gitea/src/lib.rs index abfa6ce..ce24fe3 100644 --- a/forge/gitea/src/lib.rs +++ b/forge/gitea/src/lib.rs @@ -117,11 +117,11 @@ impl SCForge for Gitea { .await .unwrap(); - fn to_user(u: schema::User, g: &Gitea) -> Arc> { + fn to_user(u: schema::User, g: &Gitea) -> Arc { let mut profile_url = g.instance_url.clone(); profile_url.set_path(&u.username); let username = Arc::new(u.username); - Arc::new(User { + Arc::new(forge_core::User { username, html_link: profile_url.to_string(), profile_photo: Some(u.avatar_url),