summaryrefslogtreecommitdiff
path: root/src/macros.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.rs')
-rw-r--r--src/macros.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/macros.rs b/src/macros.rs
deleted file mode 100644
index 710af1e6..00000000
--- a/src/macros.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-/// Unwrap the option if it is `Some(T)` or evaluate `$or` if it is `None`.
-#[allow(unused)]
-macro_rules! try_or {
- ($option:expr, $or:expr $(,)?) => {
- match $option {
- Some(v) => v,
- None => $or,
- }
- };
-}