Skip to content

Commit

Permalink
Auto merge of #8228 - matthiaskrgr:clippy_v13, r=ehuss
Browse files Browse the repository at this point in the history
more clippy fixes
  • Loading branch information
bors committed May 8, 2020
2 parents ab20265 + 63ffc6a commit cb06cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cargo/core/compiler/build_context/target_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ impl TargetInfo {
suffix,
prefix: prefix.clone(),
flavor: FileFlavor::DebugInfo,
crate_type: Some(crate_type.clone()),
crate_type: Some(crate_type),
// macOS tools like lldb use all sorts of magic to locate
// dSYM files. See https://lldb.llvm.org/use/symbols.html
// for some details. It seems like a `.dSYM` located next
Expand All @@ -389,7 +389,7 @@ impl TargetInfo {
suffix: ".pdb".to_string(),
prefix: prefix.clone(),
flavor: FileFlavor::DebugInfo,
crate_type: Some(crate_type.clone()),
crate_type: Some(crate_type),
// The absolute path to the pdb file is embedded in the
// executable. If the exe/pdb pair is moved to another
// machine, then debuggers will look in the same directory
Expand Down Expand Up @@ -466,7 +466,7 @@ impl TargetInfo {
} else {
FileFlavor::Normal
};
let file_types = self.file_types(&crate_type, flavor, target_triple)?;
let file_types = self.file_types(crate_type, flavor, target_triple)?;
match file_types {
Some(types) => {
result.extend(types);
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ fn build_base_args(
cmd.arg("-C").arg(format!("panic={}", panic));
}

match cx.lto[&unit] {
match cx.lto[unit] {
lto::Lto::Run(None) => {
cmd.arg("-C").arg("lto");
}
Expand Down

0 comments on commit cb06cb2

Please sign in to comment.