How to fix arm of limit switch?

One of the limit switches on my robot had its arm pop out of its hinge. I saw in the rules that it was legal to fix the arm of the limit switch . I’m curious as to how one would do this.