address my comments for #470

This commit is contained in:
R. Andrew Ohana
2018-07-13 22:36:51 -07:00
parent 0c908bb951
commit 80384d8da9
6 changed files with 33 additions and 47 deletions

View File

@ -34,7 +34,6 @@ pub enum ImportKind {
Static(ImportStatic),
Type(ImportType),
Enum(ImportEnum),
Const(Const)
}
#[derive(Deserialize, Serialize)]
@ -125,9 +124,6 @@ pub struct StructField {
pub comments: Vec<String>,
}
#[derive(Deserialize, Serialize)]
pub struct Const {}
pub fn new_function(struct_name: &str) -> String {
let mut name = format!("__wbg_");
name.extend(struct_name.chars().flat_map(|s| s.to_lowercase()));