diff --git a/rust/crates/langsmith-nodejs/src/lib.rs b/rust/crates/langsmith-nodejs/src/lib.rs index 77180ee37..99b04cc3c 100644 --- a/rust/crates/langsmith-nodejs/src/lib.rs +++ b/rust/crates/langsmith-nodejs/src/lib.rs @@ -46,13 +46,11 @@ impl TracingClient { // TODO: this is for debugging only, remove it before publishing println!("Rust bindings received run: {run:?}"); - self.client - .submit_run_create(run.into_inner()) - .map_err(|e| { - // TODO: this is for debugging only, remove it before publishing - println!("Submitting run failed with error: {e:?}"); - - napi::Error::from_reason(format!("{e}")) - }) + self.client.submit_run_create(run.into_inner()).map_err(|e| { + // TODO: this is for debugging only, remove it before publishing + println!("Submitting run failed with error: {e:?}"); + + napi::Error::from_reason(format!("{e}")) + }) } } diff --git a/rust/crates/langsmith-nodejs/src/types.rs b/rust/crates/langsmith-nodejs/src/types.rs index b733cd6cc..71c0305c7 100644 --- a/rust/crates/langsmith-nodejs/src/types.rs +++ b/rust/crates/langsmith-nodejs/src/types.rs @@ -2,9 +2,7 @@ use napi::{bindgen_prelude::FromNapiValue, Env, JsUnknown, NapiValue}; #[derive(Debug, serde::Deserialize)] #[serde(transparent)] -pub struct RunCreateExtended( - langsmith_tracing_client::client::RunCreateExtended, -); +pub struct RunCreateExtended(langsmith_tracing_client::client::RunCreateExtended); impl RunCreateExtended { #[inline] @@ -14,7 +12,10 @@ impl RunCreateExtended { } impl FromNapiValue for RunCreateExtended { - unsafe fn from_napi_value(napi_env: napi::sys::napi_env, napi_val: napi::sys::napi_value) -> napi::Result { + unsafe fn from_napi_value( + napi_env: napi::sys::napi_env, + napi_val: napi::sys::napi_value, + ) -> napi::Result { let env = Env::from_raw(napi_env); let value = JsUnknown::from_raw(napi_env, napi_val)?; env.from_js_value(value)