Skip to content

Commit

Permalink
Remove mutable return.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hammond authored and Nathan Hammond committed Jul 18, 2023
1 parent df2cc40 commit 5382fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/rewrite_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5382fb9

Please sign in to comment.