File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub use cargo_metadata::diagnostic::{
22
22
pub enum FlycheckConfig {
23
23
CargoCommand {
24
24
command : String ,
25
- target_tripple : Option < String > ,
25
+ target_triple : Option < String > ,
26
26
all_targets : bool ,
27
27
all_features : bool ,
28
28
features : Vec < String > ,
@@ -179,7 +179,7 @@ impl FlycheckActor {
179
179
let mut cmd = match & self . config {
180
180
FlycheckConfig :: CargoCommand {
181
181
command,
182
- target_tripple ,
182
+ target_triple ,
183
183
all_targets,
184
184
all_features,
185
185
extra_args,
@@ -190,7 +190,7 @@ impl FlycheckActor {
190
190
cmd. args ( & [ "--workspace" , "--message-format=json" , "--manifest-path" ] )
191
191
. arg ( self . workspace_root . join ( "Cargo.toml" ) ) ;
192
192
193
- if let Some ( target) = target_tripple {
193
+ if let Some ( target) = target_triple {
194
194
cmd. args ( & [ "--target" , target. as_str ( ) ] ) ;
195
195
}
196
196
if * all_targets {
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl Config {
148
148
rustfmt : RustfmtConfig :: Rustfmt { extra_args : Vec :: new ( ) } ,
149
149
flycheck : Some ( FlycheckConfig :: CargoCommand {
150
150
command : "check" . to_string ( ) ,
151
- target_tripple : None ,
151
+ target_triple : None ,
152
152
all_targets : true ,
153
153
all_features : false ,
154
154
extra_args : Vec :: new ( ) ,
@@ -224,7 +224,7 @@ impl Config {
224
224
}
225
225
Some ( _) | None => FlycheckConfig :: CargoCommand {
226
226
command : data. checkOnSave_command ,
227
- target_tripple : data. checkOnSave_target . or ( data. cargo_target ) ,
227
+ target_triple : data. checkOnSave_target . or ( data. cargo_target ) ,
228
228
all_targets : data. checkOnSave_allTargets ,
229
229
all_features : data. checkOnSave_allFeatures . unwrap_or ( data. cargo_allFeatures ) ,
230
230
features : data. checkOnSave_features . unwrap_or ( data. cargo_features ) ,
You can’t perform that action at this time.
0 commit comments