From df9263b326f7204134df781b3c078dd7e6009a10 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Thu, 31 Oct 2024 18:58:12 +1100 Subject: [PATCH] Refine Rust module re-exports --- nautilus_core/execution/src/messages/mod.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nautilus_core/execution/src/messages/mod.rs b/nautilus_core/execution/src/messages/mod.rs index 886e4d703a2..77416d0481d 100644 --- a/nautilus_core/execution/src/messages/mod.rs +++ b/nautilus_core/execution/src/messages/mod.rs @@ -18,11 +18,6 @@ use nautilus_model::identifiers::{ClientId, InstrumentId}; use strum::Display; -use self::{ - cancel::CancelOrder, cancel_all::CancelAllOrders, cancel_batch::BatchCancelOrders, - modify::ModifyOrder, query::QueryOrder, submit::SubmitOrder, submit_list::SubmitOrderList, -}; - pub mod cancel; pub mod cancel_all; pub mod cancel_batch; @@ -31,6 +26,12 @@ pub mod query; pub mod submit; pub mod submit_list; +// Re-exports +pub use self::{ + cancel::CancelOrder, cancel_all::CancelAllOrders, cancel_batch::BatchCancelOrders, + modify::ModifyOrder, query::QueryOrder, submit::SubmitOrder, submit_list::SubmitOrderList, +}; + #[derive(Clone, Debug, Display)] pub enum TradingCommand { SubmitOrder(SubmitOrder),