mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 06:47:56 +00:00
fix reproxy command not accepting member ref
This commit is contained in:
parent
ca9f25ff64
commit
134855f8f8
5 changed files with 52 additions and 19 deletions
|
|
@ -16,7 +16,7 @@ pub enum Token {
|
|||
Parameter(Parameter),
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum TokenMatchResult {
|
||||
MatchedValue,
|
||||
MatchedParameter {
|
||||
|
|
@ -36,6 +36,7 @@ pub enum TokenMatchResult {
|
|||
// a: because we want to differentiate between no match and match failure (it matched with an error)
|
||||
// "no match" has a different charecteristic because we want to continue matching other tokens...
|
||||
// ...while "match failure" means we should stop matching and return the error
|
||||
// Option fits this better (and it makes some code look a bit nicer)
|
||||
pub type TryMatchResult = Option<TokenMatchResult>;
|
||||
|
||||
impl Token {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue