mirror of
https://github.com/danog/parser.git
synced 2025-01-22 13:01:32 +01:00
chore: fmt
This commit is contained in:
parent
7d153443f6
commit
72f2588509
@ -266,7 +266,9 @@ impl Parser {
|
||||
}
|
||||
|
||||
if name.is_none() && has_used_named_arguments {
|
||||
return Err(ParseError::CannotUsePositionalArgumentAfterNamedArgument(state.current.span));
|
||||
return Err(ParseError::CannotUsePositionalArgumentAfterNamedArgument(
|
||||
state.current.span,
|
||||
));
|
||||
}
|
||||
|
||||
if unpack && state.current.kind == TokenKind::RightParen {
|
||||
|
@ -166,7 +166,7 @@ impl Parser {
|
||||
}
|
||||
|
||||
Ok(Some(Type::SelfReference))
|
||||
},
|
||||
}
|
||||
TokenKind::Parent => {
|
||||
state.next();
|
||||
|
||||
@ -178,7 +178,7 @@ impl Parser {
|
||||
}
|
||||
|
||||
Ok(Some(Type::ParentReference))
|
||||
},
|
||||
}
|
||||
TokenKind::Identifier(id) => {
|
||||
let start = state.current.span;
|
||||
state.next();
|
||||
|
Loading…
x
Reference in New Issue
Block a user