Simple self control is in order, some of us are better at it than others. You should first discover the reason for lust to arise. If you can come to an understanding of why you are bothered by lust, and how and why they are impacting your life, you will find your answer.
Meditation can help with deataching yourself from lustful thoguhts.