Handling RVPath for ParametersContext constructor.

This commit is contained in:
Tom Alexander 2020-06-06 19:57:33 -04:00
parent f9dea70d23
commit ed7d80de6c
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -43,21 +43,19 @@ impl<'a> ParametersContext<'a> {
.iter() .iter()
.map(|kvpair| { .map(|kvpair| {
let k = kvpair.key; let k = kvpair.key;
let v: BreadcrumbTreeElement<'a> = match &kvpair.value { let v: Option<BreadcrumbTreeElement<'a>> = match &kvpair.value {
RValue::RVLiteral(owned_literal) => { RValue::RVLiteral(owned_literal) => {
BreadcrumbTreeElement::Borrowed(&kvpair.value) Some(BreadcrumbTreeElement::Borrowed(&kvpair.value))
} }
/*RValue::RVPath(path) => kvpair RValue::RVPath(path) => kvpair
.value .value
.into_context_element(renderer, breadcrumbs) .into_context_element(renderer, breadcrumbs)
.unwrap() .map(std::convert::From::from),
.get_context_element_reference()
.from_context_element(),*/
RValue::RVPath(path) => todo!(),
RValue::RVTemplate(template) => todo!(), RValue::RVTemplate(template) => todo!(),
}; };
(k, v) v.map(|some_v| (k, some_v))
}) })
.filter_map(|pair| pair)
.collect(); .collect();
ParametersContext { ParametersContext {