From e094d0db4f6ad62475dc804e097cda90a28f8e0e Mon Sep 17 00:00:00 2001 From: Kazantcev Andrey <45011689+heckad@users.noreply.github.com> Date: Thu, 19 Mar 2020 16:22:54 +0300 Subject: [PATCH 1/2] Fix example in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd1b28480..11294d0eb 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ To create a new random (V4) UUID and print it out in hexadecimal form: use uuid::Uuid; -fn main() -> Result<(), Box { +fn main() -> Result<(), Box> { let my_uuid = Uuid::new_v4()?; println!("{}", my_uuid); } From 8962ef612e8b830a5e58a7cfb364c262fcccf432 Mon Sep 17 00:00:00 2001 From: Kazantcev Andrey <45011689+heckad@users.noreply.github.com> Date: Thu, 19 Mar 2020 16:26:56 +0300 Subject: [PATCH 2/2] Remove result --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 11294d0eb..98c324bde 100644 --- a/README.md +++ b/README.md @@ -95,8 +95,8 @@ To create a new random (V4) UUID and print it out in hexadecimal form: use uuid::Uuid; -fn main() -> Result<(), Box> { - let my_uuid = Uuid::new_v4()?; +fn main() { + let my_uuid = Uuid::new_v4(); println!("{}", my_uuid); } ```