mirror of https://github.com/astral-sh/ruff
format using cargo fmt
This commit is contained in:
parent
80116c768d
commit
7e7b2eadee
|
|
@ -92,7 +92,9 @@ pub fn parse_args(func_args: Vec<FunctionArgument>) -> Result<ArgumentList, Lexi
|
||||||
if let Some(keyword_name) = &name {
|
if let Some(keyword_name) = &name {
|
||||||
if keyword_names.contains(keyword_name) {
|
if keyword_names.contains(keyword_name) {
|
||||||
return Err(LexicalError {
|
return Err(LexicalError {
|
||||||
error: LexicalErrorType::DuplicateKeywordArgumentError(keyword_name.to_string()),
|
error: LexicalErrorType::DuplicateKeywordArgumentError(
|
||||||
|
keyword_name.to_string(),
|
||||||
|
),
|
||||||
location: start,
|
location: start,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue