Now we have a list of IDs, we need to add more context:
JFJVY57RWKT6YJ62MWWOHXSLASLWPORFUGF67TVTW4FW7XBZEAUQC
BMG4FSHNV54VXDHNUVGZOMXQJWLFSUF3M5NCN7GJETNIF3QTHELQC
C73UJ7ZYG4EE3YTK3N66GXPNWJHEBSRE4PDQBWMN6SKQ3U6ZYKXAC
use xilem_html::{document_body, elements as el, App, View, ViewExt};
use xilem_html::{document_body, elements as el, App, View, ViewExt, ViewMarker};
arg_ids: Vec<String>,
self.arg_ids = if let Ok(args) = &matches { args.ids().map(|id| id.as_str().to_string()).collect() } else { Vec::new() };
self.arg_ids = if let Ok(args) = &matches {
args.ids().map(|id| id.as_str().to_string()).collect()
} else {
Vec::new()
};
fn arg_item(id: &String) -> impl View<AppState> + ViewMarker { el::li(id.to_owned())}
fn arg_item(id: &String) -> impl View<AppState> + ViewMarker {
el::li(id.to_owned())
}
let arg_items = state .arg_ids .iter() .map(|id| arg_item(id)) .collect::<Vec<_>>();
let arg_items = state
.arg_ids
.iter()
.map(|id| arg_item(id))
.collect::<Vec<_>>();
el::br(()), arg_items,
el::br(()),
arg_items,