1
0
mirror of https://github.com/mastodon/flodgatt synced 2025-04-11 22:58:25 +02:00
flodgatt/src/utils.rs
Daniel Sockwell ff957bd407 Minor refactoring
Improved clarity, concision, and ergonomics of the codebase.
2019-04-19 12:16:03 -04:00

9 lines
232 B
Rust

/// Combines multiple routes with the same return type together with
/// `or()` and `unify()`
#[macro_export]
macro_rules! or {
($filter:expr, $($other_filter:expr),*) => {
$filter$(.or($other_filter).unify())*
};
}