From f7801824fcec4fdf6bb1e836e1d80092311b1b1b Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Sun, 8 Dec 2024 20:56:17 -0500 Subject: [PATCH] Fix formatting in Rust tracing client. (#1296) Needed to stop Rust linting from failing in CI. --- .../tests/tracing_client_test.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs b/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs index 1f7f1eecd..2b66b5fa1 100644 --- a/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs +++ b/rust/crates/langsmith-tracing-client/tests/tracing_client_test.rs @@ -28,9 +28,11 @@ async fn handle_request(body: Vec, content_type_str: String) -> Vec>(multer::bytes::Bytes::copy_from_slice(body.as_slice())) } - ); + let stream = futures::stream::once(async move { + Ok::<_, Box>(multer::bytes::Bytes::copy_from_slice( + body.as_slice(), + )) + }); let mut mp = Multipart::new(stream, boundary); let mut fields = Vec::new(); @@ -40,9 +42,9 @@ async fn handle_request(body: Vec, content_type_str: String) -> Vec