(refs #34) fixed error "method 'as_slice' is not a member of trait Slice"

It seems they have moved method 'as_slice' to trait AsSlice
http://doc.rust-lang.org/std/slice/trait.AsSlice.html

Fixed the error "method 'as_slice' is not a member of trait Slice" mentioned in #34