aboutsummaryrefslogtreecommitdiff
path: root/src/ext/framework
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-30 21:39:57 -0800
committerAustin Hellyer <[email protected]>2016-11-30 21:39:57 -0800
commit62ed564e5f67f3e25d2307fbbf950d0489a28de8 (patch)
treee142ea7c612df1d6283c023f6e7548d6d14380d4 /src/ext/framework
parentFix start_integration_sync (diff)
downloadserenity-62ed564e5f67f3e25d2307fbbf950d0489a28de8.tar.xz
serenity-62ed564e5f67f3e25d2307fbbf950d0489a28de8.zip
Make command macro functions public
This will allow the command macro to be used in sub-modules.
Diffstat (limited to 'src/ext/framework')
-rw-r--r--src/ext/framework/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/framework/mod.rs b/src/ext/framework/mod.rs
index c27ac5c..46b80e2 100644
--- a/src/ext/framework/mod.rs
+++ b/src/ext/framework/mod.rs
@@ -100,12 +100,12 @@ use ::model::Message;
#[macro_export]
macro_rules! command {
($fname:ident($c:ident, $m:ident, $a:ident) $b:block) => {
- fn $fname($c: &Context, $m: &Message, $a: Vec<String>) {
+ pub fn $fname($c: &Context, $m: &Message, $a: Vec<String>) {
$b
}
};
($fname:ident($c:ident, $m:ident, $a:ident, $($name:ident: $t:ty),*) $b:block) => {
- fn $fname($c: &Context, $m: &Message, $a: Vec<String>) {
+ pub fn $fname($c: &Context, $m: &Message, $a: Vec<String>) {
let mut i = $a.iter();
$(