From 17180a1a55a9bd12dd3a4aa65790627517684700 Mon Sep 17 00:00:00 2001 From: Harry Sarson Date: Mon, 16 Dec 2019 11:43:26 +0000 Subject: [PATCH] remove unnecessary parentheses This commit handles a new rustc warning currently in nightly --- src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.rs b/src/string.rs index 49d69f8c..2885fb0e 100644 --- a/src/string.rs +++ b/src/string.rs @@ -96,7 +96,7 @@ where /// assert!(String::from_utf8(v).is_err()); /// ``` #[inline] - pub fn from_utf8(vec: Vec) -> Result<(String), Utf8Error> { + pub fn from_utf8(vec: Vec) -> Result, Utf8Error> { // validate input str::from_utf8(&*vec)?;