Comments.

Coverage to Makefile.toml.

Added branch to map! to allow for instantiating with default values.
This commit is contained in:
Martin Berg Alstad
2024-08-31 17:49:27 +02:00
parent 8fb89e0459
commit 7e2df67fee
10 changed files with 95 additions and 4 deletions

View File

@ -77,6 +77,10 @@ macro_rules! routes {
}
/// Merges the given routers into a single router.
/// # Examples
/// ```
/// let _: axum::Router<()> = lib::join_routes![axum::Router::new(), axum::Router::new()];
/// ```
#[macro_export]
macro_rules! join_routes {
($($route:expr),* $(,)?) => {