difftreelog
style fix clippy warnings
in: master
1 file changed
crates/jrsonnet-stdlib/src/arrays.rsdiffbeforeafterboth260 index: usize,260 index: usize,261) -> Result<ArrValue> {261) -> Result<ArrValue> {262 let newArrLeft = arr.clone().slice(None, Some(index), None);262 let newArrLeft = arr.clone().slice(None, Some(index), None);263 let newArrRight = arr.clone().slice(Some(index + 1), None, None);263 let newArrRight = arr.slice(Some(index + 1), None, None);264 264 return Ok(ArrValue::extended(265 Ok(ArrValue::extended(265 newArrLeft.unwrap_or(ArrValue::empty()),266 newArrLeft.unwrap_or(ArrValue::empty()),266 newArrRight.unwrap_or(ArrValue::empty()))267 newArrRight.unwrap_or(ArrValue::empty()))267 );268 )268}269}269270270#[builtin]271#[builtin]