remove unnecessary parentheses

This commit handles a new rustc warning currently in nightly
This commit is contained in:
Harry Sarson 2019-12-16 11:43:26 +00:00 committed by GitHub
parent 5ffd0df2cc
commit 17180a1a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ where
/// assert!(String::from_utf8(v).is_err());
/// ```
#[inline]
pub fn from_utf8(vec: Vec<u8, N>) -> Result<(String<N>), Utf8Error> {
pub fn from_utf8(vec: Vec<u8, N>) -> Result<String<N>, Utf8Error> {
// validate input
str::from_utf8(&*vec)?;