style: run format
This commit is contained in:
parent
f8d1dcee5b
commit
328b84eb8f
1 changed files with 2 additions and 2 deletions
|
@ -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) })?;
|
||||
|
|
Loading…
Reference in a new issue