File: quickcheck-1.diff

package info (click to toggle)
rust-fst 0.4.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,900 kB
  • sloc: python: 30; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 838 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- fst.orig/Cargo.toml
+++ fst/Cargo.toml
@@ -44,10 +44,7 @@
 [dev-dependencies.quickcheck]
-version = "0.9.2"
+version = "1.0"
 default-features = false
 
-[dev-dependencies.rand]
-version = "0.7.3"
-
 [features]
 default = []
 levenshtein = ["utf8-ranges"]
--- fst.orig/src/bytes.rs
+++ fst/src/bytes.rs
@@ -131,7 +131,7 @@ pub fn pack_size(n: u64) -> u8 {
 #[cfg(test)]
 mod tests {
     use super::*;
-    use quickcheck::{QuickCheck, StdGen};
+    use quickcheck::{QuickCheck, Gen};
     use std::io;
 
     #[test]
@@ -143,7 +143,7 @@ mod tests {
             num == unpack_uint(buf.get_ref(), size)
         }
         QuickCheck::new()
-            .gen(StdGen::new(::rand::thread_rng(), 257)) // pick byte boundary
+            .gen(Gen::new(257)) // pick byte boundary
             .quickcheck(p as fn(u64) -> bool);
     }
 }