Fix warnings with latest rust.
Merge pull request #43 from metajack/rust-up

Fix warnings with latest rust.