aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-01 08:48:47 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-01 08:48:47 -0800
commit2557fc9ab98fd4ee4c894b05f1eda903773c4558 (patch)
tree0ceab0af51e5a1cf646d1ae0a1a31eed91e87c08 /src/test
parent31ee496621384f9c6d670c32d576411cfcc79bc1 (diff)
downloadmilf-rs-2557fc9ab98fd4ee4c894b05f1eda903773c4558.tar.gz
milf-rs-2557fc9ab98fd4ee4c894b05f1eda903773c4558.zip
Update to rust master
Diffstat (limited to 'src/test')
-rw-r--r--src/test/valid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs
index 29fcda8..8f8b6bc 100644
--- a/src/test/valid.rs
+++ b/src/test/valid.rs
@@ -30,7 +30,7 @@ fn to_json(toml: Value) -> Json {
Boolean(b) => doit("bool", Json::String(b.to_string())),
Datetime(s) => doit("datetime", Json::String(s)),
Array(arr) => {
- let is_table = match arr.as_slice().head() {
+ let is_table = match arr.as_slice().first() {
Some(&Table(..)) => true,
_ => false,
};