mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 04:50:34 +00:00
expect -> ok().expect
This commit is contained in:
parent
27ee3f8d7d
commit
65ce6a6161
@ -323,7 +323,7 @@ where
|
||||
{
|
||||
let mut vec = Vec::new();
|
||||
for i in iter {
|
||||
vec.push(i).expect("Vec::from_iter overflow");
|
||||
vec.push(i).ok().expect("Vec::from_iter overflow");
|
||||
}
|
||||
vec
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user