feat(config): implement Display for ForgeType
This commit is contained in:
parent
cf10aa3912
commit
dc4110596f
1 changed files with 8 additions and 0 deletions
|
@ -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<Self, OneOf<(std::io::Error, toml::de::Error)>> {
|
||||
|
|
Loading…
Reference in a new issue