Update to new syntax and removed unused imports.
Merge pull request #1 from metajack/rust-0.6-syntax

Update to new syntax and removed unused imports.