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;
4
4
use itertools:: Itertools ;
5
5
use std:: ffi:: OsStr ;
6
6
use std:: fs;
7
- use std:: path:: Path ;
8
7
use std:: process:: Command ;
9
8
use tracing:: info;
10
9
@@ -60,18 +59,9 @@ fn set_sources(config: &mut Config) -> anyhow::Result<()> {
60
59
Ok ( ( ) )
61
60
}
62
61
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
-
71
62
pub ( crate ) fn prepare ( config : & mut Config ) -> anyhow:: Result < ( ) > {
72
63
dump_lib ( ) ?;
73
64
set_sources ( config) ?;
74
- remove_file_if_exists ( Path :: new ( "Cargo.lock" ) ) ?;
75
65
dump_cargo_manifest ( & config. qltest_dependencies ) ?;
76
66
if config. qltest_cargo_check {
77
67
let status = Command :: new ( "cargo" )
You can’t perform that action at this time.
0 commit comments