From 418507e475fc42fb1cd754601ac00081e6fe7cf1 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Sun, 10 Jan 2021 09:53:41 -0800 Subject: [PATCH] Update example to use Result> This seem to be what is now expected on stable; as the compiler warnings are saying; and also consistent with what `read_user_from_stream` example is using. --- src/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de.rs b/src/de.rs index 4f406bd7c..4abe7ef1f 100644 --- a/src/de.rs +++ b/src/de.rs @@ -2432,7 +2432,7 @@ where /// location: String, /// } /// -/// fn read_user_from_file>(path: P) -> Result> { +/// fn read_user_from_file>(path: P) -> Result> { /// // Open the file in read-only mode with buffer. /// let file = File::open(path)?; /// let reader = BufReader::new(file);