diff options
Diffstat (limited to 'src/show.rs')
-rw-r--r-- | src/show.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/show.rs b/src/show.rs index 487c62a..435da2d 100644 --- a/src/show.rs +++ b/src/show.rs @@ -50,7 +50,7 @@ impl<'a, 'b> Printer<'a, 'b> { match *v { Table(..) => continue, Array(ref a) => { - match a.as_slice().head() { + match a.as_slice().first() { Some(&Table(..)) => continue, _ => {} } @@ -69,7 +69,7 @@ impl<'a, 'b> Printer<'a, 'b> { self.stack.pop(); } Array(ref inner) => { - match inner.as_slice().head() { + match inner.as_slice().first() { Some(&Table(..)) => {} _ => continue } |