aboutsummaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorMei Boudreau <[email protected]>2017-11-23 10:34:30 -0500
committeralex <[email protected]>2017-11-23 16:34:30 +0100
commit2d23d8b50386e38fece6987286bd0b3d56d1cada (patch)
treec96a8f0c59d5c67fbe4241ca723fbbe03cacc04c /src/internal
parentAdd `before`/`after` middleware to `Command` (diff)
downloadserenity-2d23d8b50386e38fece6987286bd0b3d56d1cada.tar.xz
serenity-2d23d8b50386e38fece6987286bd0b3d56d1cada.zip
Convert from macro to ? (#226)
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/macros.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/internal/macros.rs b/src/internal/macros.rs
index 3bcc5c5..4ee43d3 100644
--- a/src/internal/macros.rs
+++ b/src/internal/macros.rs
@@ -181,11 +181,3 @@ macro_rules! enum_number {
}
}
}
-
-#[allow(unused_macros)]
-macro_rules! try_opt {
- ($x:expr) => (match $x {
- Some(v) => v,
- None => return None,
- });
-}