Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
261 stars 38 forks source link

Fix deprecation warnings about SipHasher vs DefaultHasher #87

Closed rozbb closed 7 years ago

rozbb commented 7 years ago

Currently, building gives the warning messages:

warning: use of deprecated item: use `std::collections::hash_map::DefaultHasher` instead, #[warn(deprecated)] on by default
    --> src/int.rs:4442:30
     |
4442 |             let mut hasher = std::hash::SipHasher::new();
     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: use of deprecated item: use `std::collections::hash_map::DefaultHasher` instead, #[warn(deprecated)] on by default
    --> src/int.rs:4442:30
     |
4442 |             let mut hasher = std::hash::SipHasher::new();
     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: use of deprecated item: use `std::collections::hash_map::DefaultHasher` instead, #[warn(deprecated)] on by default
    --> src/int.rs:4446:30
     |
4446 |             let mut hasher = std::hash::SipHasher::new();
     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: use of deprecated item: use `std::collections::hash_map::DefaultHasher` instead, #[warn(deprecated)] on by default
    --> src/int.rs:4446:30
     |
4446 |             let mut hasher = std::hash::SipHasher::new();
     |                              ^^^^^^^^^^^^^^^^^^^^^^^^^

    Finished release [optimized] target(s) in 94.5 secs
     Running target/release/deps/quickcheck-5d65a93dfbfec02c