Skip to content

Commit

Permalink
style: run format
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Dec 16, 2022
1 parent f8d1dce commit 328b84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/napi/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) })?;
Expand Down

0 comments on commit 328b84e

Please sign in to comment.