diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 9ec60044021d..8d81a670e0a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,6 +47,16 @@ extern crate tokio_timer; extern crate url; extern crate url_serde; +/// Simple macro used to reduce boilerplate when defining actor +/// message types. +macro_rules! message { + ( $t:ty, $r:ty ) => { + impl Message for $t { + type Result = $r; + } + } +} + pub mod db; pub mod errors; pub mod handlers; |