If the rug is not too badly damaged, it may be possible to sponge the area clean and dry. If the damage is severe, or if the rug is very absorbent (a shaggy rug, for example), you will need to get it professionally cleaned.