Skip to content

Commit 588f051

Browse files
author
Daniel Spencer
committed
Fix "panic message is not a string literal"
Updates build.rs to use the second form of the assert! macro, which can take a format string and arguments, without needing to use format!.
1 parent 6a8a263 commit 588f051

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ fn main() {
125125
// check that the kernel file exists
126126
assert!(
127127
kernel.exists(),
128-
format!("KERNEL does not exist: {}", kernel.display())
128+
"KERNEL does not exist: {}",
129+
kernel.display()
129130
);
130131

131132
// get access to llvm tools shipped in the llvm-tools-preview rustup component

0 commit comments

Comments
 (0)