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

11 lines
268 B
Rust
Raw Normal View History

use std::fmt::{Display, Formatter};
/// The hostname of a forge
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Hostname(pub String);
impl Display for Hostname {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}