Update for latest Rust
Merge pull request #4 from TomBebbington/master

Remove lots of deprecation warnings