131: remove unnecessary parentheses r=japaric a=harrysarson

This commit handles a new rustc warning currently in nightly.

I think this is why #129 failed. 🙂 

Co-authored-by: Harry Sarson <harry.sarson@hotmail.co.uk>
This commit is contained in:
bors[bot] 2019-12-17 10:40:23 +00:00 committed by GitHub
commit a6949b5439
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)?;