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>(
7272 options. thread_limit ,
7373 None ,
7474 ) ;
75- let path_backing = index. path_backing . as_slice ( ) ;
75+ let ( entries , path_backing) = index. entries_mut_and_pathbacking ( ) ;
7676 in_parallel_if (
7777 || true , // TODO: heuristic: when is parallelization not worth it?
78- index . entries . chunks_mut ( chunk_size) ,
78+ entries. chunks_mut ( chunk_size) ,
7979 thread_limit,
8080 |_| State {
8181 buf : Vec :: new ( ) ,
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ fn racy_git() {
141141 // shows up as unchanged even tough the file did change. This case
142142 // doesn't happen in the realworld (except for file corruption) but
143143 // 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;
145145 set_file_mtime ( worktree. join ( "content" ) , FileTime :: from_unix_time ( timestamp as i64 , 0 ) )
146146 . expect ( "changing filetime works" ) ;
147147 let mut recorder = Recorder :: default ( ) ;
You can’t perform that action at this time.
0 commit comments