diff --git a/crates/turborepo-lib/src/rewrite_json.rs b/crates/turborepo-lib/src/rewrite_json.rs index 9c23b6608c3d70..c233273cd455ec 100644 --- a/crates/turborepo-lib/src/rewrite_json.rs +++ b/crates/turborepo-lib/src/rewrite_json.rs @@ -129,7 +129,7 @@ fn get_closest_node<'a>( current_node: &'a jsonc_parser::ast::Value<'a>, target_path: &[&str], current_path: &'a mut Vec<&'a str>, -) -> (&'a mut Vec<&'a str>, &'a jsonc_parser::ast::Value<'a>) { +) -> (&'a Vec<&'a str>, &'a jsonc_parser::ast::Value<'a>) { // No target_path? We've arrived. if target_path.is_empty() { return (current_path, current_node);