Skip to content

Commit 2ad5bf8

Browse files
bors[bot]matklad
andauthored
Merge #5471
5471: Typo r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 99b8140 + 8f3fdf3 commit 2ad5bf8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/flycheck/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub use cargo_metadata::diagnostic::{
2222
pub enum FlycheckConfig {
2323
CargoCommand {
2424
command: String,
25-
target_tripple: Option<String>,
25+
target_triple: Option<String>,
2626
all_targets: bool,
2727
all_features: bool,
2828
features: Vec<String>,
@@ -179,7 +179,7 @@ impl FlycheckActor {
179179
let mut cmd = match &self.config {
180180
FlycheckConfig::CargoCommand {
181181
command,
182-
target_tripple,
182+
target_triple,
183183
all_targets,
184184
all_features,
185185
extra_args,
@@ -190,7 +190,7 @@ impl FlycheckActor {
190190
cmd.args(&["--workspace", "--message-format=json", "--manifest-path"])
191191
.arg(self.workspace_root.join("Cargo.toml"));
192192

193-
if let Some(target) = target_tripple {
193+
if let Some(target) = target_triple {
194194
cmd.args(&["--target", target.as_str()]);
195195
}
196196
if *all_targets {

crates/rust-analyzer/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl Config {
148148
rustfmt: RustfmtConfig::Rustfmt { extra_args: Vec::new() },
149149
flycheck: Some(FlycheckConfig::CargoCommand {
150150
command: "check".to_string(),
151-
target_tripple: None,
151+
target_triple: None,
152152
all_targets: true,
153153
all_features: false,
154154
extra_args: Vec::new(),
@@ -224,7 +224,7 @@ impl Config {
224224
}
225225
Some(_) | None => FlycheckConfig::CargoCommand {
226226
command: data.checkOnSave_command,
227-
target_tripple: data.checkOnSave_target.or(data.cargo_target),
227+
target_triple: data.checkOnSave_target.or(data.cargo_target),
228228
all_targets: data.checkOnSave_allTargets,
229229
all_features: data.checkOnSave_allFeatures.unwrap_or(data.cargo_allFeatures),
230230
features: data.checkOnSave_features.unwrap_or(data.cargo_features),

0 commit comments

Comments
 (0)