Update for rust master.
Clean up Packet and make it a bit more strict.
A bit of cleanup and silence warning.