Preventing mold with minor carpet water damage
Honestly that seems fine to me. For added peace of mind, you can spray it with bleach. If you live in a particularly dry and sunny climate, you could also leave it out in the sun on some concrete. I live in the desert and this works great; the sun dries and disinfects anything in hours.

What you should be more worried about is your drywall. Poke it with something hard. If it's mushy, you'll need to replace the bottom sections. There's also the issue of termites. They're attracted to water; you don't want to find that they're eating your studs. This also depends on where you live, of course.