File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,10 @@ pub mod iter {
611
611
///
612
612
/// * `patterns`
613
613
/// - Optional patterns to use to limit the paths to look at. If empty, all paths are considered.
614
- pub fn into_index_worktree_iter ( self , patterns : Vec < BString > ) -> Result < index_worktree:: Iter , Error > {
614
+ pub fn into_index_worktree_iter (
615
+ self ,
616
+ patterns : impl IntoIterator < Item = BString > ,
617
+ ) -> Result < index_worktree:: Iter , Error > {
615
618
let index = match self . index {
616
619
None => IndexPersistedOrInMemory :: Persisted ( self . repo . index_or_empty ( ) ?) ,
617
620
Some ( index) => index,
@@ -632,6 +635,7 @@ pub mod iter {
632
635
{
633
636
let ( tx, rx) = std:: sync:: mpsc:: channel ( ) ;
634
637
let mut collect = Collect { tx } ;
638
+ let patterns: Vec < _ > = patterns. into_iter ( ) . collect ( ) ;
635
639
let join = std:: thread:: Builder :: new ( )
636
640
. name ( "gix::status::index_worktree::iter::producer" . into ( ) )
637
641
. spawn ( {
You can’t perform that action at this time.
0 commit comments