mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Update the error message wording
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
parent
6ae6b0024e
commit
ff2b479dc9
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue