Skip to content

Commit

Permalink
feat: Display implementation for FullName. (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jan 26, 2022
1 parent 813a3be commit cf50ae2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-ref/src/fullname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ impl<'a> From<crate::FullNameRef<'a>> for FullName {
}
}

impl std::fmt::Display for FullName {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
std::fmt::Display::fmt(&self.0, f)
}
}

impl FullName {
/// Interpret this fully qualified reference name as partial name.
pub fn to_partial(&self) -> crate::PartialNameRef<'_> {
Expand Down

0 comments on commit cf50ae2

Please sign in to comment.