fix up some strings that looked funky after rustfmt

This commit is contained in:
R. Andrew Ohana
2018-06-15 23:39:51 -07:00
parent 9127a0419f
commit 7626b55d00
5 changed files with 193 additions and 180 deletions

View File

@ -271,7 +271,7 @@ impl<'a, 'b> Rust2Js<'a, 'b> {
const mem = getUint32Memory();
mem[ret / 4] = retptr;
mem[ret / 4 + 1] = retlen;
",
",
f
);
return Ok(());
@ -336,12 +336,12 @@ impl<'a, 'b> Rust2Js<'a, 'b> {
invoc = format!(
"\
try {{\n\
{}
}} catch (e) {{\n\
{}
}}\
",
try {{\n\
{}
}} catch (e) {{\n\
{}
}}\
",
&invoc, catch
);
};
@ -349,12 +349,12 @@ impl<'a, 'b> Rust2Js<'a, 'b> {
if self.finally.len() > 0 {
invoc = format!(
"\
try {{\n\
{}
}} finally {{\n\
{}
}}\
",
try {{\n\
{}
}} finally {{\n\
{}
}}\
",
&invoc, &self.finally
);
}