We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0ac786 commit b3cb545Copy full SHA for b3cb545
Cargo.toml
@@ -6,7 +6,7 @@ repository = "https://github.com/tomoikey/refined-type"
6
readme = "README.md"
7
categories = ["development-tools"]
8
license = "MIT"
9
-version = "0.3.2"
+version = "0.3.3"
10
edition = "2021"
11
12
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
README.md
@@ -13,7 +13,7 @@ type NonEmptyString = Refined<NonEmptyStringRule>;
13
14
fn main() {
15
let hello_world = NonEmptyString::new("hello world".to_string());
16
- assert_eq!(hello_world.deref(), "hello world");
+ assert_eq!(hello_world.unwrap().deref(), "hello world");
17
18
let empty_string = NonEmptyString::new("".to_string());
19
assert!(empty_string.is_err());
0 commit comments