Update the error message wording

Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
Hirrolot 2022-10-06 18:02:28 +06:00 committed by GitHub
parent 6ae6b0024e
commit ff2b479dc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ pub(crate) enum ParserType {
impl ParserType {
pub fn parse(value: AttrValue) -> Result<Self> {
value.expect(
r#""default", "split", or a path for custom parsers"#,
r#""default", "split", or a path to a custom parser function"#,
|v| match v {
AttrValue::Path(p) => Ok(ParserType::Custom(p)),
AttrValue::Lit(syn::Lit::Str(ref l)) => match &*l.value() {