mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 14:42:35 +03:00
Use js_class for static method bindings as well
This commit is contained in:
parent
539e987cdb
commit
aa735d221a
@ -473,7 +473,10 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a Option<String>)> for syn::ForeignItemFn
|
||||
kind,
|
||||
}
|
||||
} else if let Some(cls) = opts.static_method_of() {
|
||||
let class = cls.to_string();
|
||||
let class = opts
|
||||
.js_class()
|
||||
.map(Into::into)
|
||||
.unwrap_or_else(|| cls.to_string());
|
||||
let ty = ident_ty(cls.clone());
|
||||
|
||||
let kind = ast::MethodKind::Operation(ast::Operation {
|
||||
|
Loading…
Reference in New Issue
Block a user