You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was upgrading from much older version and noticed that KZGSettings::new() is not really idiomatic Rust.
Specifically for FsKZGSettings it ignored one of the arguments, for 3 other arguments it does memory allocation (with .to_vec() and .clone()) instead of taking owned vectors as arguments directly.
On a similar note FsKZGSettings now has precomputation field that is public and can be set to anything, also for some reason it has Arc in it. Is it really supposed to be set publicly to arbitrary value? If not then it should probably not be public. I only write this because previously I was constructing FsKZGSettings directly and now it that I should be using FsKZGSettings::new() instead to fill precomputation correctly.
The text was updated successfully, but these errors were encountered:
I was upgrading from much older version and noticed that
KZGSettings::new()
is not really idiomatic Rust.Specifically for
FsKZGSettings
it ignored one of the arguments, for 3 other arguments it does memory allocation (with.to_vec()
and.clone()
) instead of taking owned vectors as arguments directly.On a similar note
FsKZGSettings
now hasprecomputation
field that is public and can be set to anything, also for some reason it hasArc
in it. Is it really supposed to be set publicly to arbitrary value? If not then it should probably not be public. I only write this because previously I was constructingFsKZGSettings
directly and now it that I should be usingFsKZGSettings::new()
instead to fillprecomputation
correctly.The text was updated successfully, but these errors were encountered: