mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-01 22:36:52 +03:00
cargo +nightly clippy
This commit is contained in:
parent
64f2a6586e
commit
2ef3a820a7
@ -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)),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user