Clean up rustc warnings.

These are basically all straightforward changes and should not impact behavior of the language.
@huonw  I just felt more confortable with following the same style at all places.