Skip to content

Commit 507c09f

Browse files
committed
use new format string syntax in some places
1 parent 855af08 commit 507c09f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/diagnostics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,11 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
414414
)
415415
}
416416
},
417-
CreatedCallId(id) => format!("function call with id {}", id),
418-
CreatedAlloc(AllocId(id)) => format!("created allocation with id {}", id),
419-
FreedAlloc(AllocId(id)) => format!("freed allocation with id {}", id),
417+
CreatedCallId(id) => format!("function call with id {id}"),
418+
CreatedAlloc(AllocId(id)) => format!("created allocation with id {id}"),
419+
FreedAlloc(AllocId(id)) => format!("freed allocation with id {id}"),
420420
RejectedIsolatedOp(ref op) =>
421-
format!("{} was made to return an error due to isolation", op),
421+
format!("{op} was made to return an error due to isolation"),
422422
};
423423

424424
let (title, diag_level) = match e {

0 commit comments

Comments
 (0)