diff --git a/native/wasmex/src/wit.rs b/native/wasmex/src/wit.rs index a1e2457..1cb2975 100644 --- a/native/wasmex/src/wit.rs +++ b/native/wasmex/src/wit.rs @@ -4,9 +4,11 @@ use wit_parser::{Resolve, WorldItem}; #[rustler::nif(name = "wit_exported_functions")] pub fn exported_functions(env: rustler::Env, path: String, wit: String) -> NifResult { let mut resolve = Resolve::new(); - let id = resolve.push_str(path, &wit) + let id = resolve + .push_str(path, &wit) .map_err(|e| rustler::Error::Term(Box::new(format!("Failed to parse WIT: {}", e))))?; - let world_id = resolve.select_world(id, None) + let world_id = resolve + .select_world(id, None) .map_err(|e| rustler::Error::Term(Box::new(format!("Failed to select world: {}", e))))?; let exports = &resolve.worlds[world_id].exports; let exported_functions = exports