Skip to content

Commit ee9276f

Browse files
committed
fix!: PrepareCheckout::main_worktree() now takes Progress as geric argument.
This makes it more flexible and convenient, but is technically a breaking change.
1 parent 938f518 commit ee9276f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gix/src/clone/checkout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ pub mod main_worktree {
6262
///
6363
/// Note that this is a no-op if the remote was empty, leaving this repository empty as well. This can be validated by checking
6464
/// if the `head()` of the returned repository is not unborn.
65-
pub fn main_worktree<P, SubP>(
65+
pub fn main_worktree<P>(
6666
&mut self,
6767
mut progress: P,
6868
should_interrupt: &AtomicBool,
6969
) -> Result<(Repository, gix_worktree_state::checkout::Outcome), Error>
7070
where
71-
P: gix_features::progress::NestedProgress<SubProgress = SubP>,
72-
SubP: gix_features::progress::NestedProgress + 'static,
71+
P: gix_features::progress::NestedProgress,
72+
P::SubProgress: gix_features::progress::NestedProgress + 'static,
7373
{
7474
self.main_worktree_inner(&mut progress, should_interrupt)
7575
}

0 commit comments

Comments
 (0)