Skip to content

Commit

Permalink
Export MessageHandler to the prelude (#317)
Browse files Browse the repository at this point in the history
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]: #309
  • Loading branch information
scrabsha authored Mar 26, 2021
1 parent c8f1506 commit e923d55
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bastion/examples/fibonacci_message_handler.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bastion::{message::MessageHandler, prelude::*};
use bastion::prelude::*;

use tracing::{error, info};

Expand Down
1 change: 0 additions & 1 deletion src/bastion/examples/message_handler_multiple_types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use bastion::message::MessageHandler;
use bastion::prelude::*;
use std::fmt::Debug;
use tracing::error;
Expand Down
2 changes: 1 addition & 1 deletion src/bastion/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit e923d55

Please sign in to comment.