I noticed some from_str impls should be using FromStr trait instead, so I converted them. I additionally simplified some macros since the compiler now knows that all its callers implement FromStr.
Figuring out how to turn set_header! into a pure function as well, but since it takes Optional which doesn't have a FromStr impl, will have to think of a relatively clever solution.
I noticed some from_str impls should be using
FromStr
trait instead, so I converted them. I additionally simplified some macros since the compiler now knows that all its callers implement FromStr.Figuring out how to turn
set_header!
into a pure function as well, but since it takesOptional
which doesn't have aFromStr
impl, will have to think of a relatively clever solution.