Fix tests with serde1 feature

This commit is contained in:
Vinzent Steinberg
2020-07-31 18:16:17 +02:00
parent 19fc4e8008
commit dda17808ee
+2
View File
@@ -75,6 +75,8 @@ mod tests {
#[test]
#[cfg(feature = "serde1")]
fn test_serialization_step_rng() {
use super::StepRng;
let some_rng = StepRng::new(42, 7);
let de_some_rng: StepRng =
bincode::deserialize(&bincode::serialize(&some_rng).unwrap()).unwrap();