From e923d55503f9476484d1e44c5a915cec709bcd6f Mon Sep 17 00:00:00 2001 From: Sasha Pourcelot Date: Fri, 26 Mar 2021 11:32:19 +0100 Subject: [PATCH] Export MessageHandler to the prelude (#317) Previous pull request[1] introduced the MessageHandler datatype, but did not export it in the prelude. Examples have been updated so that they don't import MessageHandler manually. [1]: https://github.com/bastion-rs/bastion/pull/309 --- src/bastion/examples/fibonacci_message_handler.rs | 2 +- src/bastion/examples/message_handler_multiple_types.rs | 1 - src/bastion/src/lib.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bastion/examples/fibonacci_message_handler.rs b/src/bastion/examples/fibonacci_message_handler.rs index 28dd3fd7..e6ca7220 100644 --- a/src/bastion/examples/fibonacci_message_handler.rs +++ b/src/bastion/examples/fibonacci_message_handler.rs @@ -1,4 +1,4 @@ -use bastion::{message::MessageHandler, prelude::*}; +use bastion::prelude::*; use tracing::{error, info}; diff --git a/src/bastion/examples/message_handler_multiple_types.rs b/src/bastion/examples/message_handler_multiple_types.rs index 0f93e09d..44a94136 100644 --- a/src/bastion/examples/message_handler_multiple_types.rs +++ b/src/bastion/examples/message_handler_multiple_types.rs @@ -1,4 +1,3 @@ -use bastion::message::MessageHandler; use bastion::prelude::*; use std::fmt::Debug; use tracing::error; diff --git a/src/bastion/src/lib.rs b/src/bastion/src/lib.rs index a41955a0..61769b80 100644 --- a/src/bastion/src/lib.rs +++ b/src/bastion/src/lib.rs @@ -112,7 +112,7 @@ pub mod prelude { pub use crate::errors::*; #[cfg(not(target_os = "windows"))] pub use crate::io::*; - pub use crate::message::{Answer, AnswerSender, Message, Msg}; + pub use crate::message::{Answer, AnswerSender, Message, MessageHandler, Msg}; pub use crate::msg; pub use crate::path::{BastionPath, BastionPathElement}; #[cfg(feature = "scaling")]