From 328b84eb8f91072d67afbbe63eeb11ecc8099582 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sat, 17 Dec 2022 00:14:05 +0800 Subject: [PATCH] style: run format --- crates/napi/src/env.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/napi/src/env.rs b/crates/napi/src/env.rs index 7e5e473b..b5ec8f75 100644 --- a/crates/napi/src/env.rs +++ b/crates/napi/src/env.rs @@ -1020,8 +1020,8 @@ impl Env { check_status!(unsafe { sys::napi_close_handle_scope(self.0, handle_scope) })?; result } - - pub fn run_script>(&self, script: S)->Result { + + pub fn run_script>(&self, script: S) -> Result { let s = self.create_string(script.as_ref())?; let mut raw_value = ptr::null_mut(); check_status!(unsafe { sys::napi_run_script(self.0, s.raw(), &mut raw_value) })?;