From ad8ac449fcb73417d65af92585a711a2aff64322 Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Sat, 19 Sep 2026 23:08:37 +0000 Subject: [PATCH] style(rust): format renamed callback adapter Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm-rust/crates/callbacks-legacy-python/src/adapter.rs | 4 ++-- litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs | 2 +- litellm-rust/crates/callbacks-legacy-python/src/lib.rs | 2 +- litellm-rust/crates/python-bridge/src/routes/messages/mod.rs | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs b/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs index 28d5c08736f..e1742190205 100644 --- a/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs +++ b/litellm-rust/crates/callbacks-legacy-python/src/adapter.rs @@ -19,9 +19,9 @@ use serde_json::Value; use crate::{ DeploymentHooks, LegacyCallbacks, PublicCall, PythonLogger, deferred::{PendingLogging, PendingSuccess}, - finalize, is_internal_call, + finalize, is_internal_call, prepare, python::Streaming, - prepare, setup, + setup, }; /// What the legacy contract needs to know about the route it is logging. diff --git a/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs b/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs index d36523d6b94..7caa787dd9d 100644 --- a/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs +++ b/litellm-rust/crates/callbacks-legacy-python/src/callbacks.rs @@ -6,8 +6,8 @@ use litellm_host::event::{RequestContext, WireRequest}; use litellm_host_python::to_py; use pyo3::{exceptions::PyBaseException, prelude::*, types::PyDict}; -use crate::python::{Logging, Wrapper}; use crate::logger::PythonLogger; +use crate::python::{Logging, Wrapper}; pub trait LegacyCallbacks { /// `Logging.update_from_kwargs`: what the logger is told about the request it is diff --git a/litellm-rust/crates/callbacks-legacy-python/src/lib.rs b/litellm-rust/crates/callbacks-legacy-python/src/lib.rs index 514713d988b..44393792d1f 100644 --- a/litellm-rust/crates/callbacks-legacy-python/src/lib.rs +++ b/litellm-rust/crates/callbacks-legacy-python/src/lib.rs @@ -13,9 +13,9 @@ mod adapter; mod call; mod callbacks; mod deferred; -mod python; mod logger; mod preparation; +mod python; #[cfg(test)] #[path = "../tests/support.rs"] mod test_support; diff --git a/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs b/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs index 91591e302b3..b606293f79f 100644 --- a/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs +++ b/litellm-rust/crates/python-bridge/src/routes/messages/mod.rs @@ -1,7 +1,9 @@ mod host; use host::MessagesRouteHost; -use litellm_callbacks_legacy_python::{LegacySurface, PassThroughStream, PublicCall, run_legacy_call}; +use litellm_callbacks_legacy_python::{ + LegacySurface, PassThroughStream, PublicCall, run_legacy_call, +}; use litellm_core::messages::route::{messages_machine, supports}; use pyo3::{ prelude::*,