summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Scott <sam.scott89@gmail.com>2017-09-21 21:18:09 +0100
committerSam Scott <sam.scott89@gmail.com>2017-09-21 21:18:09 +0100
commitd858a267697da48d56e099eac6860f5ab8e69e46 (patch)
treeb5bb87b26bda03c99a51569caf026d6dafab1396
parentd5fb549027a3f1167234bac1d0a5a63f306cf23e (diff)
Bump version to 0.2.2.
-rw-r--r--Cargo.toml3
-rw-r--r--README.md2
-rw-r--r--examples/introduction.rs2
-rw-r--r--src/de/mod.rs4
4 files changed, 5 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 56e1d70..179c350 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,7 +7,8 @@ keywords = ["serde", "serialization", "querystring"]
license = "MIT/Apache-2.0"
name = "serde_qs"
repository = "https://github.com/samscott89/serde_qs"
-version = "0.2.1"
+readme = "README.md"
+version = "0.2.2"
[badges]
diff --git a/README.md b/README.md
index a18c117..ef3d340 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ This crate works with Cargo and can be found on
```toml
[dependencies]
-serde_qs = "0.2.1"
+serde_qs = "0.2.2"
```
[crates.io]: https://crates.io/crates/serde_qs
diff --git a/examples/introduction.rs b/examples/introduction.rs
index 4e69f16..cee6bdf 100644
--- a/examples/introduction.rs
+++ b/examples/introduction.rs
@@ -1,6 +1,4 @@
-extern crate csv;
extern crate rand;
-extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_qs as qs;
diff --git a/src/de/mod.rs b/src/de/mod.rs
index ce4124a..dfab5ec 100644
--- a/src/de/mod.rs
+++ b/src/de/mod.rs
@@ -523,8 +523,8 @@ impl<'de> de::Deserializer<'de> for LevelDeserializer {
Level::Flat(_) => {
visitor.visit_enum(self)
},
- _ => {
- Err(de::Error::custom("value does not appear to be a sequence"))
+ x => {
+ Err(de::Error::custom(format!("{:?} does not appear to be an enum", x)))
},
}
}