Skip to content

Commit a97dc96

Browse files
committed
Bind streaming sum callback lifetime explicitly
Use a closure for the generic fsum callback without changing iterator ownership or numeric behavior. Assisted-by: OpenAI Codex:model version not exposed
1 parent 3bc76fd commit a97dc96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crates/stdlib/src/math.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ mod math {
482482
.map(|value| value.map(ArgIntoFloat::into_float));
483483
values
484484
.by_ref()
485-
.process_results(pymath::math::fsum)?
485+
.process_results(|values| pymath::math::fsum(values))?
486486
.map(|value| vm.ctx.new_float(value).into())
487487
.map_err(|err| match err {
488488
pymath::Error::ERANGE => vm.new_overflow_error("intermediate overflow in fsum"),

0 commit comments

Comments
 (0)