What Nutrition Plan should a Swimmer do to get Great back to back Swims?

What good does it do if you have a great swim time but fade on your next swim? What should a swimmer do if they struggle to have great back to back swim times?