Skip to content

Commit 40c32e4

Browse files
committed
Format
1 parent 46ee081 commit 40c32e4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

README.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Here are a few quick examples of the most commonly used operations: hexifying an
1919
However, this crate also offers many other utilities for Array/Bytes/Hex, each with comprehensive documentation and examples. Check them out on [docs.rs](https://docs.rs/array-bytes)!
2020

2121
```rs
22-
use array_bytes::{Hexify, Dehexify};
22+
use array_bytes::{Dehexify, Hexify};
2323
use smallvec::SmallVec;
2424

2525
// Hexify.
@@ -33,10 +33,7 @@ assert_eq!(5_201_314_usize.hexify_upper(), "4F5DA2");
3333
// `[u8; N]`.
3434
assert_eq!(*b"Love Jane Forever".hexify(), String::from("4c6f7665204a616e6520466f7265766572"));
3535
// `&[u8; N]`.
36-
assert_eq!(
37-
b"Love Jane Forever".hexify_upper(),
38-
String::from("4C6F7665204A616E6520466F7265766572")
39-
);
36+
assert_eq!(b"Love Jane Forever".hexify_upper(), String::from("4C6F7665204A616E6520466F7265766572"));
4037
// `&[u8]`.
4138
assert_eq!(
4239
b"Love Jane Forever".as_slice().hexify_prefixed(),
@@ -61,10 +58,7 @@ assert_eq!(u64::dehexify("0x4F5DA2"), Ok(5_201_314));
6158
assert_eq!(u128::dehexify("4f5da2"), Ok(5_201_314));
6259
assert_eq!(usize::dehexify("4F5DA2"), Ok(5_201_314));
6360
// Array.
64-
assert_eq!(
65-
<[u8; 17]>::dehexify("0x4c6f7665204a616e6520466f7265766572"),
66-
Ok(*b"Love Jane Forever")
67-
);
61+
assert_eq!(<[u8; 17]>::dehexify("0x4c6f7665204a616e6520466f7265766572"), Ok(*b"Love Jane Forever"));
6862
// SmallVec.
6963
assert_eq!(
7064
SmallVec::dehexify("0x4c6f7665204a616e6520466f7265766572").unwrap().into_vec(),

0 commit comments

Comments
 (0)