Skip to content

Commit 33284ec

Browse files
committed
remove unnecessary to_string
1 parent 351afbb commit 33284ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
464464
clock: Clock::new(config.isolated_op == IsolatedOp::Allow),
465465
#[cfg(unix)]
466466
external_so_lib: config.external_so_file.as_ref().map(|lib_file_path| {
467-
let target_triple = &layout_cx.tcx.sess.opts.target_triple.to_string();
467+
let target_triple = layout_cx.tcx.sess.opts.target_triple.triple();
468468
// Check if host target == the session target.
469469
if env!("TARGET") != target_triple {
470470
panic!(

0 commit comments

Comments
 (0)