In a small sauce pan, heat the vinegar, water, sugar and salt until boiling. Turn heat off. Add onion and carrot slices to hot liquid, put a lid on the pan, and let it sit for 30 minutes . You are not cooking the vegetables, but the hot liquid will pickle them faster than room temperature liquid.