mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 21:10:28 +00:00
remove unnecessary parentheses
This commit handles a new rustc warning currently in nightly
This commit is contained in:
parent
5ffd0df2cc
commit
17180a1a55
@ -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)?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user