Skip to content

Commit d6e146c

Browse files
committed
refactor: formatting
1 parent 89de047 commit d6e146c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/stack/stack.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ impl<'repo> Stack<'repo> {
9696
/// The current branch is used if the optional branch name is not provided.
9797
///
9898
/// An error will be returned if there is no StGit stack associated with the branch.
99-
pub(crate) fn from_branch(repo: &'repo git2::Repository, branch_name: Option<&str>) -> Result<Self> {
99+
pub(crate) fn from_branch(
100+
repo: &'repo git2::Repository,
101+
branch_name: Option<&str>,
102+
) -> Result<Self> {
100103
let branch = repo.get_branch(branch_name)?;
101104
let branch_name = get_branch_name(&branch)?;
102105
let branch_head = branch.get().peel_to_commit()?;

0 commit comments

Comments
 (0)