aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/serde.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/tests/serde.rs')
-rw-r--r--test-suite/tests/serde.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-suite/tests/serde.rs b/test-suite/tests/serde.rs
index 9bbf7e0..c72bfc6 100644
--- a/test-suite/tests/serde.rs
+++ b/test-suite/tests/serde.rs
@@ -130,7 +130,7 @@ fn application_decode_error() {
struct Range10(usize);
impl<'de> Deserialize<'de> for Range10 {
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Range10, D::Error> {
- let x: usize = try!(Deserialize::deserialize(d));
+ let x: usize = Deserialize::deserialize(d)?;
if x > 10 {
Err(serde::de::Error::custom("more than 10"))
} else {