Closed termoshtt closed 6 years ago
error: no associated item named `new` found for type `std::collections::hash_map::DefaultHasher` in the current scope
--> src/lib.rs:1162:22
|
1162 | let mut hasher = <RandomState as BuildHasher>::Hasher::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I met this error with 1.12.0. I will use 1.14.0 like #7
Thanks - I'll need to hold this PR until I'm ready to make breaking changes.
I see the num-complex 0.2 milestone, where these two issues are listed. Is there another issue to be included in num-complex 0.2 ?
Maybe also #6 for no_std
, after rust-num/num-traits#16.
I guess the no_std
feature of num-traits will take a long time...
IMHO, we bump up version to 0.2 with the current two issues, and postpone the no_std
feature to 0.3. What do you think about it?
I'd rather work it out and bump only once in a long while.
Rebased, then I made it use folds instead. Thanks for the PR!
bors r+
Resolve #3
Sum<Complex<T>>
andSum<&Complex<T>>
usingZero
+AddAssign
Product<Complex<T>>
andProduct<&Complex<T>>
usingOne
+MulAssign
Num
andNumAssign
are used for type constraint.