Well, it's easier said than done, but here goes: gently sand the rust spots down. Then apply some body filler and then three coats of primer, letting it dry in between. Finally apply some paint. Once it's dry, make sure it matches the rest of the car, repainting if necessary.