Update to rust 0.6 and remove unused imports.