Skip to content

Commit

Permalink
style: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Jul 16, 2023
1 parent a4500c6 commit 397e1ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/jrsonnet-stdlib/src/arrays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,12 @@ pub fn builtin_remove_at(
index: usize,
) -> Result<ArrValue> {
let newArrLeft = arr.clone().slice(None, Some(index), None);
let newArrRight = arr.clone().slice(Some(index + 1), None, None);
return Ok(ArrValue::extended(
let newArrRight = arr.slice(Some(index + 1), None, None);

Ok(ArrValue::extended(
newArrLeft.unwrap_or(ArrValue::empty()),
newArrRight.unwrap_or(ArrValue::empty()))
);
)
}

#[builtin]
Expand Down

0 comments on commit 397e1ed

Please sign in to comment.