diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-03 16:01:23 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-03 16:04:55 +0200 |
| commit | dbfb3d2ced91e56314dfabbb4df9a338926c0a7a (patch) | |
| tree | 678264cb18f8abc81ebe28077f5aef2df4e5a4bd /src/macros.rs | |
| parent | 5a8f2fb73ddafba9fdbe952385ae2676126183ae (diff) | |
Formatting, documentation and small improvements 🧽
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macros.rs b/src/macros.rs index 8ba32650..2236c480 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -9,7 +9,7 @@ macro_rules! try_or { ($result:expr, $or:expr $(,)?) => { match $result { Ok(v) => v, - Err(_) => { $or } + Err(_) => $or, } }; } @@ -19,7 +19,7 @@ macro_rules! try_opt_or { ($option:expr, $or:expr $(,)?) => { match $option { Some(v) => v, - None => { $or } + None => $or, } }; } |
