Methods of making metal parts corrosion-resistant