File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use glob::glob;
44use itertools:: Itertools ;
55use std:: ffi:: OsStr ;
66use std:: fs;
7- use std:: path:: Path ;
87use std:: process:: Command ;
98use tracing:: info;
109
@@ -60,18 +59,9 @@ fn set_sources(config: &mut Config) -> anyhow::Result<()> {
6059 Ok ( ( ) )
6160}
6261
63- fn remove_file_if_exists ( path : & Path ) -> anyhow:: Result < ( ) > {
64- match fs:: remove_file ( path) {
65- Err ( e) if e. kind ( ) == std:: io:: ErrorKind :: NotFound => Ok ( ( ) ) ,
66- x => x,
67- }
68- . context ( format ! ( "removing file {}" , path. display( ) ) )
69- }
70-
7162pub ( crate ) fn prepare ( config : & mut Config ) -> anyhow:: Result < ( ) > {
7263 dump_lib ( ) ?;
7364 set_sources ( config) ?;
74- remove_file_if_exists ( Path :: new ( "Cargo.lock" ) ) ?;
7565 dump_cargo_manifest ( & config. qltest_dependencies ) ?;
7666 if config. qltest_cargo_check {
7767 let status = Command :: new ( "cargo" )
You can’t perform that action at this time.
0 commit comments