If someone can't tolerate anyone else on a flight eating anything, they probably shouldn't fly.
Besides if someone has a contact allergy to nuts, I can't think of a place more likely for it to happen than a plane. One patch of turbulence, and your seat neighbor's peanuts go all over you.