Semaglutide use in patients with type 2 diabetes moderately increases the risk of nonarteritic anterior ischemic optic neuropathy.