chore: apply rustfmt to binding/core sources and sync Cargo.lock

Normalises whitespace in sources committed earlier in this branch
before rustfmt was run over them (Node/WASM bindings, and three core
indicator test modules), and records the wasm-bindgen-test dependency
tree added in B6 into Cargo.lock. No functional change; cargo fmt --all
--check is now clean.
This commit is contained in:
kingchenc
2026-05-22 04:14:18 +02:00
parent 41d52ec5be
commit 59c435fbd5
6 changed files with 127 additions and 30 deletions
+6 -2
View File
@@ -442,7 +442,9 @@ impl WasmMfi {
volume: &[f64],
) -> Result<Float64Array, JsError> {
if high.len() != low.len() || low.len() != close.len() || close.len() != volume.len() {
return Err(JsError::new("high, low, close, volume must be equal length"));
return Err(JsError::new(
"high, low, close, volume must be equal length",
));
}
let mut out = Vec::with_capacity(high.len());
for i in 0..high.len() {
@@ -582,7 +584,9 @@ impl WasmVwap {
volume: &[f64],
) -> Result<Float64Array, JsError> {
if high.len() != low.len() || low.len() != close.len() || close.len() != volume.len() {
return Err(JsError::new("high, low, close, volume must be equal length"));
return Err(JsError::new(
"high, low, close, volume must be equal length",
));
}
let mut out = Vec::with_capacity(high.len());
for i in 0..high.len() {