Skip to content
Snippets Groups Projects
Unverified Commit 460e66b5 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Reduce use of format!() for VM panics

This reduces the binary size a little bit (about 600 bytes). This is not
much, but the use of format!() in these cases was overkill regardless of
the binary size.
parent 10a3f29f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6,10 +6,10 @@ pub fn display_panic(process: &RcProcess, message: &str) {
 
for context in process.context().contexts() {
frames.push(format!(
"{}, line {}, in {}",
format!("{:?}", context.code.file.string_value().unwrap()),
"\"{}\", line {}, in \"{}\"",
context.code.file.string_value().unwrap(),
context.line.to_string(),
format!("{:?}", context.code.name.string_value().unwrap())
context.code.name.string_value().unwrap()
));
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment