cargo +nightly clippy

This commit is contained in:
collin 2020-12-07 15:55:46 -05:00
parent 64f2a6586e
commit 2ef3a820a7

View File

@ -30,11 +30,8 @@ pub fn find_input(
.find(|(parameter, _value)| parameter.variable.name == name); .find(|(parameter, _value)| parameter.variable.name == name);
match matched_parameter { match matched_parameter {
Some((_parameter, value_option)) => match value_option { Some((_parameter, Some(value))) => Ok(value.clone()),
Some(value) => Ok(value.clone()), _ => Err(InputValueError::MissingParameter(name)),
None => Err(InputValueError::MissingParameter(name)),
},
None => Err(InputValueError::MissingParameter(name)),
} }
} }