File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,10 @@ where
73
73
options. thread_limit ,
74
74
None ,
75
75
) ;
76
- let path_backing = index. path_backing . as_slice ( ) ;
76
+ let ( entries , path_backing) = index. entries_mut_and_pathbacking ( ) ;
77
77
in_parallel_if (
78
78
|| true , // TODO: heuristic: when is parallelization not worth it?
79
- index . entries . chunks_mut ( chunk_size) ,
79
+ entries. chunks_mut ( chunk_size) ,
80
80
thread_limit,
81
81
{
82
82
let options = & options;
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ fn racy_git() {
164
164
// change.
165
165
// This case doesn't happen in the realworld (except for file corruption) but
166
166
// makes sure we are actually hitting the right codepath.
167
- index. entries [ 0 ] . stat . mtime . secs = timestamp;
167
+ index. entries_mut ( ) [ 0 ] . stat . mtime . secs = timestamp;
168
168
set_file_mtime ( worktree. join ( "content" ) , FileTime :: from_unix_time ( timestamp as i64 , 0 ) )
169
169
. expect ( "changing filetime works" ) ;
170
170
let mut recorder = Recorder :: default ( ) ;
You can’t perform that action at this time.
0 commit comments