Skip to content

Commit

Permalink
Update to latest serde master
Browse files Browse the repository at this point in the history
The serde version in our Cargo.toml is now just 0.6. Although
technically incorrect, this allows dependents to change serde revisions
without having to update this project.

A .cargo/config was added for travis to support this feature.

All of this will be resolved once serde 0.7 is released.
  • Loading branch information
jwilm committed Feb 10, 2016
1 parent c69367c commit d1aa208
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.cargo_config
@@ -0,0 +1 @@
paths = [ "./deps/serde" ]
11 changes: 11 additions & 0 deletions .travis.yml
Expand Up @@ -4,3 +4,14 @@ sudo: false
rust:
# TODO feature flags. This is needed for tests right now.
- nightly

script:
- mkdir .cargo
- cp .travis.cargo_config .cargo/config
- mkdir deps
- |
git clone https://github.com/serde-rs/serde deps/serde
pushd deps/serde
git reset --hard origin/master
popd
- cargo test
10 changes: 2 additions & 8 deletions Cargo.toml
Expand Up @@ -5,11 +5,5 @@ authors = ["Joe Wilm <joe@jwilm.com>"]

[dependencies]
redis = "0.5"

[dependencies.serde]
git = "https://github.com/jwilm/serde"
rev = "b0bc8e35946d5937f9af73804518a7ac8b5bf7ae"

[dependencies.serde_macros]
git = "https://github.com/jwilm/serde"
rev = "b0bc8e35946d5937f9af73804518a7ac8b5bf7ae"
serde = "0.6"
serde_macros = "0.6"
2 changes: 1 addition & 1 deletion src/decode.rs
Expand Up @@ -286,7 +286,7 @@ impl serde::Deserializer for Deserializer {
}

#[inline]
fn deserialize_struct_key<V>(&mut self, mut visitor: V) -> Result<V::Value>
fn deserialize_struct_field<V>(&mut self, mut visitor: V) -> Result<V::Value>
where V: serde::de::Visitor,
{
let s = try!(self.read_string());
Expand Down

0 comments on commit d1aa208

Please sign in to comment.