From be01d106a4cfea0a912c5b07006f5e13938e1543 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 8 Apr 2024 11:49:56 +0100 Subject: [PATCH] feat(config): use accesors for hostname and user --- src/server/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/config.rs b/src/server/config.rs index 96a4827..91444bf 100644 --- a/src/server/config.rs +++ b/src/server/config.rs @@ -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(), }, } }