With &str we can use nom's VerboseError to report on syntax errors.
Although &[u8] is fine, the RFC works with ASCII and we already need to convert from &[u8] to &str in some places. Using &str slightly simplifies the code and generally seems more appropriate.
With
&str
we can use nom'sVerboseError
to report on syntax errors.Although
&[u8]
is fine, the RFC works with ASCII and we already need to convert from&[u8]
to&str
in some places. Using&str
slightly simplifies the code and generally seems more appropriate.