File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ pub enum FlycheckConfig {
58
58
extra_env : FxHashMap < String , String > ,
59
59
invocation_strategy : InvocationStrategy ,
60
60
invocation_location : InvocationLocation ,
61
- target_dir : Option < PathBuf > ,
62
61
} ,
63
62
}
64
63
@@ -355,7 +354,6 @@ impl FlycheckActor {
355
354
extra_env,
356
355
invocation_strategy,
357
356
invocation_location,
358
- target_dir,
359
357
} => {
360
358
let mut cmd = Command :: new ( command) ;
361
359
cmd. envs ( extra_env) ;
@@ -377,10 +375,6 @@ impl FlycheckActor {
377
375
}
378
376
}
379
377
380
- if let Some ( target_dir) = target_dir {
381
- cmd. arg ( "--target-dir" ) . arg ( target_dir) ;
382
- }
383
-
384
378
( cmd, args)
385
379
}
386
380
} ;
Original file line number Diff line number Diff line change @@ -1289,7 +1289,6 @@ impl Config {
1289
1289
}
1290
1290
1291
1291
pub fn flycheck ( & self ) -> FlycheckConfig {
1292
- let target_dir = self . target_dir_from_config ( ) ;
1293
1292
match & self . data . check_overrideCommand {
1294
1293
Some ( args) if !args. is_empty ( ) => {
1295
1294
let mut args = args. clone ( ) ;
@@ -1310,7 +1309,6 @@ impl Config {
1310
1309
}
1311
1310
InvocationLocation :: Workspace => flycheck:: InvocationLocation :: Workspace ,
1312
1311
} ,
1313
- target_dir,
1314
1312
}
1315
1313
}
1316
1314
Some ( _) | None => FlycheckConfig :: CargoCommand {
@@ -1345,7 +1343,7 @@ impl Config {
1345
1343
extra_args : self . check_extra_args ( ) ,
1346
1344
extra_env : self . check_extra_env ( ) ,
1347
1345
ansi_color_output : self . color_diagnostic_output ( ) ,
1348
- target_dir,
1346
+ target_dir : self . target_dir_from_config ( ) ,
1349
1347
} ,
1350
1348
}
1351
1349
}
You can’t perform that action at this time.
0 commit comments