mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
address my comments for #470
This commit is contained in:
@ -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()));
|
||||
|
Reference in New Issue
Block a user