clippy: fix map_clone

Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-10-06 10:51:14 +02:00
parent e6e6e9c234
commit c4aa913c68

View File

@ -63,6 +63,6 @@ impl MainInput {
/// Returns an `Option` of the main function input at `name`
pub fn get(&self, name: &str) -> Option<Option<InputValue>> {
self.input.get(name).map(|input| input.clone())
self.input.get(name).cloned()
}
}