@@ -18,7 +18,7 @@ use wit_parser::Resolve;
1818
1919use crate :: bindgen:: BindingItem ;
2020use crate :: wit:: exports:: local:: spidermonkey_embedding_splicer:: splicer:: {
21- CoreFn , CoreTy , Features , SpliceResult ,
21+ CoreFn , CoreTy , Feature , SpliceResult ,
2222} ;
2323use crate :: { bindgen, map_core_fn, parse_wit, splice} ;
2424
@@ -32,7 +32,7 @@ use crate::{bindgen, map_core_fn, parse_wit, splice};
3232// }
3333pub fn splice_bindings (
3434 engine : Vec < u8 > ,
35- features : Vec < Features > ,
35+ features : Vec < Feature > ,
3636 wit_source : Option < String > ,
3737 wit_path : Option < String > ,
3838 world_name : Option < String > ,
@@ -340,7 +340,7 @@ pub fn splice(
340340 engine : Vec < u8 > ,
341341 imports : Vec < ( String , String , CoreFn , Option < i32 > ) > ,
342342 exports : Vec < ( String , CoreFn ) > ,
343- features : Vec < Features > ,
343+ features : Vec < Feature > ,
344344 debug : bool ,
345345) -> Result < Vec < u8 > > {
346346 let mut module = Module :: parse ( & engine, false ) . unwrap ( ) ;
@@ -351,7 +351,7 @@ pub fn splice(
351351
352352 // if 'fetch-event' feature is disabled (default being default-enabled),
353353 // remove the built-in incoming-handler which is built around it's use.
354- if !features. contains ( & Features :: FetchEvent ) {
354+ if !features. contains ( & Feature :: FetchEvent ) {
355355 remove_if_exported_by_js (
356356 & mut module,
357357 & exports,
0 commit comments