help!

so we were doggy sitting and the pup pooped on my mother in laws rug . How do I take the smell off of the rug ?