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