Skip to content

Commit

Permalink
refactor: Remove GitReference default impl
Browse files Browse the repository at this point in the history
  • Loading branch information
sudormrfbin committed Apr 23, 2021
1 parent 62447ce commit d245fb9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,6 @@ impl GitReference {
}
}

impl Default for GitReference {
/// Makes a [GitReference] with "master" as branch.
fn default() -> Self {
Self {
kind: GitRefKind::Branch,
value: "master".to_string(),
}
}
}

/// Fetch from a remote repo (branches and tags). Does not change working tree.
/// Returns the default remote branch.
fn fetch(repo: &Repository, remote: &str) -> Result<GitReference> {
Expand Down

0 comments on commit d245fb9

Please sign in to comment.