This commit is contained in:
Janggun Lee
2025-02-11 16:11:31 +09:00
parent 0758005eac
commit a8e0aa5e69
8 changed files with 22 additions and 27 deletions

View File

@@ -1,14 +1,3 @@
#[macro_export]
/// Ok or executing the given expression.
macro_rules! ok_or {
($e:expr_2021, $err:expr_2021) => {{
match $e {
Ok(r) => r,
Err(_) => $err,
}
}};
}
#[macro_export]
/// Some or executing the given expression.
macro_rules! some_or {