mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Disable a Clippy warning
This commit is contained in:
1 parent
bdb6208f6f
commit
3f1009ec2c
1 file changed
+1
@@ -6,6 +6,7 @@ use crate::error::{LexicalError, LexicalErrorType};
|
||||
type ParameterDefs = (Vec<ast::Parameter>, Vec<ast::Expression>);
|
||||
type ParameterDef = (ast::Parameter, Option<ast::Expression>);
|
||||
|
||||
#[allow(clippy::collapsible_if)]
|
||||
pub fn parse_params(params: Vec<ParameterDef>) -> Result<ParameterDefs, LexicalError> {
|
||||
let mut names = vec![];
|
||||
let mut defaults = vec![];
|
||||
|
||||
Reference in new issue
Block a user