@@ -5,9 +5,8 @@ use crate::core::git;
55use crate :: core:: graph:: BranchGraph ;
66use crate :: core:: restack;
77use crate :: core:: store:: {
8- BranchArchiveReason ,
9- PendingCleanCandidate , PendingCleanCandidateKind , PendingCleanOperation , PendingOperationKind ,
10- PendingOperationState , open_initialized, record_branch_archived,
8+ BranchArchiveReason , PendingCleanCandidate , PendingCleanCandidateKind , PendingCleanOperation ,
9+ PendingOperationKind , PendingOperationState , open_initialized, record_branch_archived,
1110} ;
1211use crate :: core:: workflow:: { self , RestackExecutionEvent } ;
1312
@@ -308,8 +307,8 @@ where
308307 ) ?,
309308 ) ?,
310309 PendingCleanCandidateKind :: IntegratedIntoParent => {
311- let Some ( parent_branch_name) =
312- BranchGraph :: new ( & session . state ) . parent_branch_name ( & node, & session. config . trunk_branch )
310+ let Some ( parent_branch_name) = BranchGraph :: new ( & session . state )
311+ . parent_branch_name ( & node, & session. config . trunk_branch )
313312 else {
314313 return Err ( io:: Error :: other ( format ! (
315314 "tracked parent for '{}' is missing from dig" ,
@@ -422,12 +421,16 @@ where
422421 }
423422}
424423
425- fn pending_clean_candidate_from_clean_candidate ( candidate : & CleanCandidate ) -> PendingCleanCandidate {
424+ fn pending_clean_candidate_from_clean_candidate (
425+ candidate : & CleanCandidate ,
426+ ) -> PendingCleanCandidate {
426427 PendingCleanCandidate {
427428 branch_name : candidate. branch_name . clone ( ) ,
428429 kind : match & candidate. reason {
429430 CleanReason :: DeletedLocally => PendingCleanCandidateKind :: DeletedLocally ,
430- CleanReason :: IntegratedIntoParent { .. } => PendingCleanCandidateKind :: IntegratedIntoParent ,
431+ CleanReason :: IntegratedIntoParent { .. } => {
432+ PendingCleanCandidateKind :: IntegratedIntoParent
433+ }
431434 } ,
432435 }
433436}
0 commit comments