Updates for rust 0.12

.. to ... in match
Replaced Vec::from_slice() with to_vec()
Merge pull request #30 from wickerwaka/fix-0.12

Updates for rust 0.12