Did you analyze your tire, rim, and tube to find the cause of the flats? Two flats in two miles wouldn't likely be by chance. I'd bet (with 90% certainty) that the 2nd flat was your fault. Most likely either something in the tire you didn't catch or you damaged the tube installing it.
I had a similar situation a few weeks ago. Two flats on one ride and hadn't had a flat in a few thousand miles. First flat was from a patched tube where the patch started coming off. Simple diagnoisis there.
Second flat was about 8mi later. Thoroughly inspected tire, rim, and tube but couldn't find the cause. I had to really pump up the tube to find the leak. It was on the side of the tube. So it wasn't caused by the tire or rim. Then I remembered I think I pinched the tube with a tire lever when putting it on. That's what I get for trying to rush.
Note to self: Next time, save yourself some time and take your time.