mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
webidl: Use Default for pub
tokens (#215)
This commit is contained in:
parent
4a54e6fd52
commit
a30ccd7c18
@ -91,7 +91,7 @@ impl WebidlParse for webidl::ast::NonPartialInterface {
|
||||
js_namespace: None,
|
||||
kind: backend::ast::ImportKind::Type(backend::ast::ImportType {
|
||||
vis: syn::Visibility::Public(syn::VisPublic {
|
||||
pub_token: syn::token::Pub(proc_macro2::Span::call_site()),
|
||||
pub_token: Default::default(),
|
||||
}),
|
||||
name: Ident::new(&self.name, proc_macro2::Span::call_site()),
|
||||
}),
|
||||
|
@ -13,7 +13,7 @@ assert_parse!(
|
||||
js_namespace: None,
|
||||
kind: backend::ast::ImportKind::Type(backend::ast::ImportType {
|
||||
vis: syn::Visibility::Public(syn::VisPublic {
|
||||
pub_token: syn::token::Pub(proc_macro2::Span::call_site()),
|
||||
pub_token: Default::default(),
|
||||
}),
|
||||
name: syn::Ident::new("Event", proc_macro2::Span::call_site()),
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user