aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2015-08-12 23:01:49 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2015-08-12 23:01:49 -0700
commitbbc167cde968aa2ad10e97f1223b8d6ff6eaf47f (patch)
tree9270e1cc9ed2e460882114fe1db920eb0ee75e95 /tests
parent4e0172a9a510bdd4468dc22c562d79c3c5449daa (diff)
downloadmilf-rs-bbc167cde968aa2ad10e97f1223b8d6ff6eaf47f.tar.gz
milf-rs-bbc167cde968aa2ad10e97f1223b8d6ff6eaf47f.zip
Get serde feature compiling again
Diffstat (limited to 'tests')
-rw-r--r--tests/serde.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serde.rs b/tests/serde.rs
index 4c0cc96..f4af529 100644
--- a/tests/serde.rs
+++ b/tests/serde.rs
@@ -87,7 +87,7 @@ fn application_decode_error() {
fn deserialize<D: Deserializer>(d: &mut D) -> Result<Range10, D::Error> {
let x: usize = try!(Deserialize::deserialize(d));
if x > 10 {
- Err(serde::de::Error::syntax_error())
+ Err(serde::de::Error::syntax("more than 10"))
} else {
Ok(Range10(x))
}