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 @@ -72,10 +72,10 @@ pub fn changes_to_obtain<'index, T: Send>(
72
72
options. thread_limit ,
73
73
None ,
74
74
) ;
75
- let path_backing = index. path_backing . as_slice ( ) ;
75
+ let ( entries , path_backing) = index. entries_mut_and_pathbacking ( ) ;
76
76
in_parallel_if (
77
77
|| true , // TODO: heuristic: when is parallelization not worth it?
78
- index . entries . chunks_mut ( chunk_size) ,
78
+ entries. chunks_mut ( chunk_size) ,
79
79
thread_limit,
80
80
|_| State {
81
81
buf : Vec :: new ( ) ,
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ fn racy_git() {
141
141
// shows up as unchanged even tough the file did change. This case
142
142
// doesn't happen in the realworld (except for file corruption) but
143
143
// makes sure we are actually hitting the right codepath
144
- index. entries [ 0 ] . stat . mtime . secs = timestamp;
144
+ index. entries_mut ( ) [ 0 ] . stat . mtime . secs = timestamp;
145
145
set_file_mtime ( worktree. join ( "content" ) , FileTime :: from_unix_time ( timestamp as i64 , 0 ) )
146
146
. expect ( "changing filetime works" ) ;
147
147
let mut recorder = Recorder :: default ( ) ;
You can’t perform that action at this time.
0 commit comments