Merge pull request #1019 from alexcrichton/rfc-5

Implement rustwasm/rfcs#5, implement `Deref` for imports and `structural` by default
This commit is contained in:
Alex Crichton
2018-11-12 10:59:46 -06:00
committed by GitHub
27 changed files with 618 additions and 246 deletions

View File

@ -413,7 +413,7 @@ impl<'a, 'b> Js2Rust<'a, 'b> {
name = name
));
}
self.rust_arguments.push(format!("{} ? 1 : 0", name));
self.rust_arguments.push(format!("{}", name));
}
Descriptor::Char => {
self.js_arguments.push((name.clone(), "string".to_string()));