Formula Left open!

Ok so my boyfriend made the bottles for our son last night before bed and I woke up to let our dog out this morning and noticed he left the lid off the can. Would you continue using the formula or discard it cus it’s been exposed to the air and maybe even ants or bugs overnight?