style: run format

This commit is contained in:
LongYinan 2022-12-17 00:14:05 +08:00
parent f8d1dcee5b
commit 328b84eb8f
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -1020,8 +1020,8 @@ impl Env {
check_status!(unsafe { sys::napi_close_handle_scope(self.0, handle_scope) })?;
result
}
pub fn run_script<S: AsRef<str>>(&self, script: S)->Result<JsObject> {
pub fn run_script<S: AsRef<str>>(&self, script: S) -> Result<JsObject> {
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) })?;