state_types/catalogs: use .cloned()
@@ -47,7 +47,7 @@ pub fn catalogs_reducer(state: &CatalogGrouped, action: &Action) -> Option<Box<C
let mut groups = state.groups.to_owned();
let group_content = match result {
Ok(ResourceResponse::Metas { metas, skip: 0, .. }) => Loadable::Ready(
- metas.iter().take(MAX_ITEMS).map(|m| m.to_owned()).collect(),
+ metas.iter().take(MAX_ITEMS).cloned().collect(),
),
Ok(_) => Loadable::Message("unexpected response".to_owned()),
Err(e) => Loadable::Message(e.to_owned()),
