Replace try! macro with ? operator

This commit is contained in:
Taiki Endo
2019-06-10 09:05:11 -07:00
committed by Sean McArthur
parent 09772c4e77
commit ed7c7b5c58
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ macro_rules! serde_impl {
let len = cmp::min(seq.size_hint().unwrap_or(0), 4096);
let mut values = Vec::with_capacity(len);
while let Some(value) = try!(seq.next_element()) {
while let Some(value) = seq.next_element()? {
values.push(value);
}