File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
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.2 "
9
+ version = " 0.3.3 "
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,7 +13,7 @@ type NonEmptyString = Refined<NonEmptyStringRule>;
13
13
14
14
fn main () {
15
15
let hello_world = NonEmptyString :: new (" hello world" . to_string ());
16
- assert_eq! (hello_world . deref (), " hello world" );
16
+ assert_eq! (hello_world . unwrap () . deref (), " hello world" );
17
17
18
18
let empty_string = NonEmptyString :: new ("" . to_string ());
19
19
assert! (empty_string . is_err ());
You can’t perform that action at this time.
0 commit comments