Paul Campbell
341dc97a51
Repository is now behind an enum to allow selection of a mock Repsitory for use in tests.
8 lines
225 B
Rust
8 lines
225 B
Rust
/// The hostname of a forge
|
|
#[derive(Clone, Default, Debug, PartialEq, Eq, derive_more::Display)]
|
|
pub struct Hostname(String);
|
|
impl Hostname {
|
|
pub fn new(str: impl Into<String>) -> Self {
|
|
Self(str.into())
|
|
}
|
|
}
|