From f9900d02d300968fd75a88f320b8bb2a4697bf04 Mon Sep 17 00:00:00 2001 From: Chris Nelson Date: Tue, 17 Dec 2024 12:36:33 -0500 Subject: [PATCH] oops format --- native/wasmex/src/wit.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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