diff --git a/src/server/config.rs b/src/server/config.rs index 1f20c07..2525eae 100644 --- a/src/server/config.rs +++ b/src/server/config.rs @@ -1,3 +1,5 @@ +use std::fmt::{Display, Formatter}; + use serde::Deserialize; use terrors::OneOf; @@ -20,6 +22,12 @@ pub enum ForgeType { // GitLab, // BitBucket, } +impl Display for ForgeType { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + write!(f, "{:?}", self) + } +} + #[allow(dead_code)] impl Config { pub(crate) fn load(fs: &FileSystem) -> Result> {