diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/valid.rs | 2 |
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, }; |