mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-10 11:39:05 +00:00
8166ad0c7c
Prior to this commit, the `FromForm` derive could pair the incorrect field name with a failing validation. The bug was caused by using two mismatched iterators in a `quote!()` invocation. Specifically, the first iterator emitted validation calls for all fields that had validation applied, while the second emitted field names for all fields, irrespective of whether the field had any validation applied. The two iterators were effectively zipped to create the final error, creating the bug. This commit fixes the issue by correctly matching field names with their validators at the expense of an additional allocation, necessitated by the `quote` crate's inability to access subfields in a repetition. Fixes #2394. |
||
---|---|---|
.. | ||
ui-fail | ||
ui-fail-nightly | ||
ui-fail-stable | ||
async-entry.rs | ||
async-routes.rs | ||
catcher.rs | ||
expansion.rs | ||
from_form_field.rs | ||
from_form.rs | ||
responder.rs | ||
route-data.rs | ||
route-format.rs | ||
route-ranking.rs | ||
route-raw.rs | ||
route.rs | ||
segment-ignore.rs | ||
typed-uris.rs | ||
ui-fail.rs | ||
uri_display.rs |