aboutsummaryrefslogtreecommitdiff
path: root/src/utils/macros.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-29 20:51:10 -0800
committerAustin Hellyer <[email protected]>2016-11-29 22:27:59 -0800
commit93b990d8d1bc9df69b8e27a3db61da570822aad6 (patch)
tree6305cf635df90681527a8e736f65ff19f21fd8bc /src/utils/macros.rs
parentAdd more shiny readme badges (diff)
downloadserenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.tar.xz
serenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.zip
Clean up the codebase
Diffstat (limited to 'src/utils/macros.rs')
-rw-r--r--src/utils/macros.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/utils/macros.rs b/src/utils/macros.rs
index d9026af..e8f74dd 100644
--- a/src/utils/macros.rs
+++ b/src/utils/macros.rs
@@ -19,11 +19,11 @@ macro_rules! request {
($route:expr, $method:ident, $url:expr) => {{
let client = HyperClient::new();
try!(request($route, || client
- .$method(api_concat!($url))))
+ .$method(api!($url))))
}};
}
-macro_rules! cdn_concat {
+macro_rules! cdn {
($e:expr) => {
concat!("https://cdn.discordapp.com", $e)
}
@@ -37,12 +37,7 @@ macro_rules! api {
};
}
-macro_rules! api_concat {
- ($e:expr) => {
- concat!("https://discordapp.com/api/v6", $e)
- }
-}
-macro_rules! status_concat {
+macro_rules! status {
($e:expr) => {
concat!("https://status.discordapp.com/api/v2", $e)
}