mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
Fix #[debug_handler] for multiple extractors (#552)
* Fix `#[debug_handler]` for multiple extractors It generated a function for each extractor to check the type but those functions didn't have unique names. Fixed by including all idents in the `arg: Extractor` token tree in the name of the function generated. Not sure there is a simpler way to fix it. * just use a counter * don't need visit feature anymore
This commit is contained in:
@@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
# Unreleased
|
||||
|
||||
- None.
|
||||
- Fix regression causing errors when `#[debug_handler]` was used on functions with multiple
|
||||
extractors.
|
||||
|
||||
# 0.2.1 (19. October 2021)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user