Skip to content

Commit

Permalink
Fix tests with serde1 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Jul 31, 2020
1 parent 19fc4e8 commit dda1780
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rngs/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dda1780

Please sign in to comment.