File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ repository = "https://github.com/tomoikey/refined-type"
6
6
readme = " README.md"
7
7
categories = [" development-tools" ]
8
8
license = " MIT"
9
- version = " 0.3.1 "
9
+ version = " 0.3.2 "
10
10
edition = " 2021"
11
11
12
12
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ type NonEmptyString = Refined<NonEmptyStringRule>;
13
13
14
14
fn main () {
15
15
let hello_world = NonEmptyString :: new (" hello world" . to_string ());
16
- assert_eq! (five . deref (), " hello world" );
16
+ assert_eq! (hello_world . deref (), " hello world" );
17
17
18
18
let empty_string = NonEmptyString :: new ("" . to_string ());
19
- assert! (eight . is_err ());
19
+ assert! (empty_string . is_err ());
20
20
}
21
21
```
22
22
You can’t perform that action at this time.
0 commit comments