File: faster-hex-0.10.patch

package info (click to toggle)
rust-hex 0.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 204 kB
  • sloc: makefile: 2
file content (53 lines) | stat: -rw-r--r-- 1,666 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff --git a/Cargo.toml b/Cargo.toml
index fab04a8..7d6ef81 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,7 +37,7 @@ default-features = false
 version = "0.3"
 
 [dev-dependencies.faster-hex]
-version = "0.5"
+version = "0.10"
 
 [dev-dependencies.pretty_assertions]
 version = "0.6"
diff --git a/benches/hex.rs b/benches/hex.rs
index 6435032..1189ea6 100644
--- a/benches/hex.rs
+++ b/benches/hex.rs
@@ -9,7 +9,7 @@ fn bench_encode(c: &mut Criterion) {
     c.bench_function("rustc_hex_encode", |b| b.iter(|| DATA.to_hex::<String>()));
 
     c.bench_function("faster_hex_encode", |b| {
-        b.iter(|| faster_hex::hex_string(DATA).unwrap())
+        b.iter(|| faster_hex::hex_string(DATA))
     });
 
     c.bench_function("faster_hex_encode_fallback", |b| {
@@ -33,7 +33,7 @@ fn bench_decode(c: &mut Criterion) {
     });
 
     c.bench_function("faster_hex_decode", move |b| {
-        let hex = faster_hex::hex_string(DATA).unwrap();
+        let hex = faster_hex::hex_string(DATA);
         let len = DATA.len();
         let mut dst = vec![0; len];
 
@@ -41,7 +41,7 @@ fn bench_decode(c: &mut Criterion) {
     });
 
     c.bench_function("faster_hex_decode_unchecked", |b| {
-        let hex = faster_hex::hex_string(DATA).unwrap();
+        let hex = faster_hex::hex_string(DATA);
         let len = DATA.len();
         let mut dst = vec![0; len];
 
@@ -49,7 +49,7 @@ fn bench_decode(c: &mut Criterion) {
     });
 
     c.bench_function("faster_hex_decode_fallback", |b| {
-        let hex = faster_hex::hex_string(DATA).unwrap();
+        let hex = faster_hex::hex_string(DATA);
         let len = DATA.len();
         let mut dst = vec![0; len];