Closed Ogeon closed 9 years ago
:umbrella: The latest upstream changes (presumably #58) made this pull request unmergeable. Please resolve the merge conflicts.
I like this. I think I will keep it. What do you think, @tmmcguire?
Sorry I've been out of touch lately, I was out of town and then head-down on a only-semi-related project.
I like it! I'd say it looks exactly like what I was thinking of, but I think it does things better than what I had in mind. Thanks!
Great! I'll just push some other changes I have in store and before merging this on top of them. I have decided to give parts of the request parsing a makeover to preserve more of the original data and it will most likely conflict with this.
It turned out to be worse than expected. I'll merge this first.
@homu r+
:pushpin: Commit 440ffd7 has been approved by Ogeon
:hourglass: Testing commit 440ffd7 with merge eb699b7...
This PR adds a
Patameters
type that extendsHashMap
with helpful parsing methods. This allows parameters to easily be parsed as any typeT: FromStr
without repeatingmap(|v| v.parse().ok())
or anything similar.Part of the purpose of this PR is to see how sane it is to implement this as a separate type, instead of a trait. Thoughts, ideas and feedback are most welcome.
This replaces some occurrences of
HashMap
withParameters
, which makes it a breaking change.Closes #55