It's really up to the individual...imho, she could have extended the leotard down to the knee and covered her head with the same outfit material to be a little more covered.

Conservative Muslims would probably say that she should be fully covered in loose clothing with head covering.

She obviously felt comfortable competing like that.
______________________________________________________________________
Love is the answer...