aboutsummaryrefslogtreecommitdiff
path: root/src/serialization.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-11-06 22:11:52 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-11-06 22:11:52 -0800
commitac6f3b27e03e7a5938fd4cae5fc3fecc5ab1a85f (patch)
treed7460b77e6e207e95d1df2699dc36fd99cbf8fbf /src/serialization.rs
parentd201170d4791cca7f3d2a8dce0fc94d145922c40 (diff)
downloadmilf-rs-ac6f3b27e03e7a5938fd4cae5fc3fecc5ab1a85f.tar.gz
milf-rs-ac6f3b27e03e7a5938fd4cae5fc3fecc5ab1a85f.zip
Update to rust master
Diffstat (limited to 'src/serialization.rs')
-rw-r--r--src/serialization.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialization.rs b/src/serialization.rs
index 3c5eb87..fda7c06 100644
--- a/src/serialization.rs
+++ b/src/serialization.rs
@@ -560,8 +560,8 @@ impl serialize::Decoder<DecodeError> for Decoder {
let field = f_name.to_string();
let toml = match self.toml {
Some(Table(ref mut table)) => {
- table.pop(&field)
- .or_else(|| table.pop(&f_name.replace("_", "-")))
+ table.remove(&field)
+ .or_else(|| table.remove(&f_name.replace("_", "-")))
},
ref found => return Err(self.mismatch("table", found)),
};