Updates for rust 0.12

.. to ... in match
Replaced Vec::from_slice() with to_vec()