Fix error message of enum_parse-based attributes
This commit is contained in:
parent
52e14d8263
commit
00ff1dc492
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ macro_rules! enum_parse {
|
||||||
let input = $input.to_lowercase();
|
let input = $input.to_lowercase();
|
||||||
match input.as_str() {
|
match input.as_str() {
|
||||||
$( $( $s )|* => Ok($val) ),*,
|
$( $( $s )|* => Ok($val) ),*,
|
||||||
_ => Err(anyhow!(concat!("Couldn't parse ", $name, ": '{}'. Possible values are ", $($($s),*),*), input))
|
_ => Err(anyhow!(concat!("Couldn't parse ", $name, ": '{}'. Possible values are ", $($($s, " "),*),*), input))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue