diff --git a/CHANGELOG.md b/CHANGELOG.md index 50a2da7..743a1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## unreleased +### Added + + - Support for the trailing comma in the `deps` macro ([PR #37](https://github.com/teloxide/dptree/pull/37)). + ## 0.5.1 - 2025-07-10 ### Fixed diff --git a/src/di.rs b/src/di.rs index 0eab331..b983e49 100644 --- a/src/di.rs +++ b/src/di.rs @@ -291,7 +291,7 @@ impl_into_di!(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12); /// ``` #[macro_export] macro_rules! deps { - ($($dep:expr),*) => { + ($($dep:expr),* $(,)?) => { { // In the case if this macro receives zero arguments. #[allow(unused_mut)]