Skip to content

Commit 13b2624

Browse files
committed
Fix compilation error.
1 parent 92db0bd commit 13b2624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/compiler/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc<dyn Executor>) -> Car
214214
// If we are a binary and the package also contains a library, then we
215215
// don't pass the `-l` flags.
216216
let pass_l_flag = unit.target.is_lib() || !unit.pkg.targets().iter().any(|t| t.is_lib());
217-
let link_type = unit.target.into();
217+
let link_type = (&unit.target).into();
218218
let extra_link_arg = cx.bcx.config.cli_unstable().extra_link_arg;
219219

220220
let dep_info_name = match cx.files().metadata(unit) {

0 commit comments

Comments
 (0)