Skip to content

tor-keymgr: Use collect_tuple in TimePeriod::from_slug.

gabi-250 requested to merge gabi-250/arti:fix-time-period-parsing-bug into main

This fixes a bug in TimePeriod::from_slug. Previously, this impl would split the slug by _, attempting to collect the parts into an ArrayVec of length 3, which is wrong, because the collect() panics if there are more than 3 parts.

Merge request reports

Loading