-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping functions between DateSymbolsV1, TimeSymbolsV1, and neo symbols #4187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be cool if we could design this as a wrapper provider but this is fine
🎉 All dependencies have been resolved ! |
.get_aux() | ||
.and_then(|aux| aux.iter().next()) | ||
.ok_or_else(|| { | ||
DataError::custom("Expected aux key") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit (optional): potentially error when there are two subtags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Ok(result.into()); | ||
} | ||
let result = match subtag { | ||
STADLN_SHRT | FORMAT_SHRT => payload.weekdays.format.short.as_ref(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: nice work with the match statements, this is a decent flow
Part of #3598
Depends on #4188
Depends on #4189