From 2557fc9ab98fd4ee4c894b05f1eda903773c4558 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 1 Jan 2015 08:48:47 -0800 Subject: Update to rust master --- src/test/valid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') 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, }; -- cgit v1.2.3