Skip to content

Commit

Permalink
Merge pull request rustwasm#1181 from rhysd/fix-dts-struct-fields
Browse files Browse the repository at this point in the history
Fix missing semicolons at generated struct fields in .d.ts
  • Loading branch information
alexcrichton authored Jan 15, 2019
2 parents 715b4f4 + 8d68398 commit d5b6c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
.argument(&descriptor)?
.ret(&Descriptor::Unit)?;
ts_dst.push_str(&format!(
"{}{}: {}\n",
"{}{}: {};\n",
if field.readonly { "readonly " } else { "" },
field.name,
&cx.js_arguments[0].1
Expand Down

0 comments on commit d5b6c52

Please sign in to comment.