Add push_extra method to Context
This commit is contained in:
parent
c56927e7a4
commit
184b334a09
|
@ -37,6 +37,10 @@ impl Context {
|
||||||
&mut self.extra
|
&mut self.extra
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn push_extra(&mut self, detail: Detail) {
|
||||||
|
self.extra.push(detail);
|
||||||
|
}
|
||||||
|
|
||||||
pub fn pop_extra(&mut self) -> Option<Detail> {
|
pub fn pop_extra(&mut self) -> Option<Detail> {
|
||||||
self.extra.pop()
|
self.extra.pop()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue