git-next/crates/config/src/forge_name.rs

11 lines
272 B
Rust
Raw Normal View History

use std::path::PathBuf;
/// The name of a Forge to connect to
#[derive(Clone, Debug, PartialEq, Eq, derive_more::Display)]
pub struct ForgeName(pub String);
impl From<&ForgeName> for PathBuf {
fn from(value: &ForgeName) -> Self {
Self::from(&value.0)
}
}