File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/cargo/core/compiler/fingerprint Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2017,16 +2017,16 @@ where
2017
2017
let Ok ( current_file_len) = fs:: metadata ( & path) . map ( |m| m. len ( ) ) else {
2018
2018
return Some ( StaleItem :: FailedToReadMetadata ( path. to_path_buf ( ) ) ) ;
2019
2019
} ;
2020
- let Ok ( file) = File :: open ( path) else {
2021
- return Some ( StaleItem :: MissingFile ( path. to_path_buf ( ) ) ) ;
2022
- } ;
2023
2020
if current_file_len != file_len {
2024
2021
return Some ( StaleItem :: FileSizeChanged {
2025
2022
path : path. to_path_buf ( ) ,
2026
2023
new_size : current_file_len,
2027
2024
old_size : file_len,
2028
2025
} ) ;
2029
2026
}
2027
+ let Ok ( file) = File :: open ( path) else {
2028
+ return Some ( StaleItem :: MissingFile ( path. to_path_buf ( ) ) ) ;
2029
+ } ;
2030
2030
let Ok ( checksum) = Checksum :: compute ( prior_checksum. algo , file) else {
2031
2031
return Some ( StaleItem :: UnableToReadFile ( path. to_path_buf ( ) ) ) ;
2032
2032
} ;
You can’t perform that action at this time.
0 commit comments