diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-03 18:15:09 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-03 18:15:09 +0200 |
| commit | 54e0da59e37c25f5b9f9cd8fbe162184debe521b (patch) | |
| tree | 699cdb8e05dd2867a185bd2f662764f107efecb0 /src/macros.rs | |
| parent | 91d14d2a221f619738e4534c1b4266633ce5789d (diff) | |
Small documentation fixes 🧾
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 10 |
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, - } - }; -} |
