mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-27 12:30:35 +00:00
Merge #131
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:
commit
a6949b5439
@ -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