fix: explicit forge_core::User usage to avoid namespace conflicts

This commit is contained in:
Aravinth Manivannan 2022-06-04 20:58:31 +05:30
parent 7b30c08f5f
commit 5e8c3a10cf
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -117,11 +117,11 @@ impl SCForge for Gitea {
.await
.unwrap();
fn to_user(u: schema::User, g: &Gitea) -> Arc<User<'_>> {
fn to_user(u: schema::User, g: &Gitea) -> Arc<forge_core::User> {
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),