Handling RVPath for ParametersContext constructor.
This commit is contained in:
parent
f9dea70d23
commit
ed7d80de6c
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user