fix: explicit forge_core::User usage to avoid namespace conflicts
This commit is contained in:
parent
7b30c08f5f
commit
5e8c3a10cf
1 changed files with 2 additions and 2 deletions
|
@ -117,11 +117,11 @@ impl SCForge for Gitea {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.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();
|
let mut profile_url = g.instance_url.clone();
|
||||||
profile_url.set_path(&u.username);
|
profile_url.set_path(&u.username);
|
||||||
let username = Arc::new(u.username);
|
let username = Arc::new(u.username);
|
||||||
Arc::new(User {
|
Arc::new(forge_core::User {
|
||||||
username,
|
username,
|
||||||
html_link: profile_url.to_string(),
|
html_link: profile_url.to_string(),
|
||||||
profile_photo: Some(u.avatar_url),
|
profile_photo: Some(u.avatar_url),
|
||||||
|
|
Loading…
Reference in a new issue