This commit is contained in:
Artemiy
2023-01-15 18:23:37 +03:00
committed by GitHub
parent 56a9eab7eb
commit a909c60f05
5 changed files with 168 additions and 3 deletions

View File

@ -1011,10 +1011,10 @@ impl Value {
}
/// Follow a given cell path into the value: for example accessing select elements in a stream or list
pub fn update_cell_path(
pub fn update_cell_path<'a>(
&mut self,
cell_path: &[PathMember],
callback: Box<dyn FnOnce(&Value) -> Value>,
callback: Box<dyn FnOnce(&Value) -> Value + 'a>,
) -> Result<(), ShellError> {
let orig = self.clone();