expect -> ok().expect

This commit is contained in:
Jorge Aparicio 2018-05-14 18:50:27 +02:00 committed by GitHub
parent 27ee3f8d7d
commit 65ce6a6161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}