feat(config): use accesors for hostname and user

This commit is contained in:
Paul Campbell 2024-04-08 11:49:56 +01:00
parent 3c4a0d52b1
commit be01d106a4

View file

@ -147,8 +147,8 @@ impl From<(&ForgeName, &Forge)> for ForgeDetails {
Self {
name: forge.0.clone(),
forge_type: forge.1.forge_type.clone(),
hostname: Hostname(forge.1.hostname.clone()),
user: User(forge.1.user.clone()),
hostname: forge.1.hostname(),
user: forge.1.user(),
}
}
}
@ -189,8 +189,8 @@ impl RepoDetails {
forge: ForgeDetails {
name: forge_name.clone(),
forge_type: forge.forge_type.clone(),
hostname: Hostname(forge.hostname.clone()),
user: User(forge.user.clone()),
hostname: forge.hostname(),
user: forge.user(),
},
}
}