mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-04 16:15:11 +03:00
clippy: fix map_clone
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
parent
e6e6e9c234
commit
c4aa913c68
@ -63,6 +63,6 @@ impl MainInput {
|
|||||||
|
|
||||||
/// Returns an `Option` of the main function input at `name`
|
/// Returns an `Option` of the main function input at `name`
|
||||||
pub fn get(&self, name: &str) -> Option<Option<InputValue>> {
|
pub fn get(&self, name: &str) -> Option<Option<InputValue>> {
|
||||||
self.input.get(name).map(|input| input.clone())
|
self.input.get(name).cloned()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user