diff --git a/test_suite/tests/bytes/mod.rs b/test_suite/tests/bytes/mod.rs index c259a969..99630725 100644 --- a/test_suite/tests/bytes/mod.rs +++ b/test_suite/tests/bytes/mod.rs @@ -22,7 +22,7 @@ impl<'de> Visitor<'de> for ByteBufVisitor { V: SeqAccess<'de>, { let mut values = Vec::new(); - while let Some(value) = try!(visitor.next_element()) { + while let Some(value) = visitor.next_element()? { values.push(value); } Ok(values) diff --git a/test_suite/tests/test_annotations.rs b/test_suite/tests/test_annotations.rs index 8745dd82..993f2c0b 100644 --- a/test_suite/tests/test_annotations.rs +++ b/test_suite/tests/test_annotations.rs @@ -68,7 +68,7 @@ impl DeserializeWith for i32 { where D: Deserializer<'de>, { - if try!(Deserialize::deserialize(de)) { + if Deserialize::deserialize(de)? { Ok(123) } else { Ok(2)