The government’s first ever national target to reduce food waste will encourage farmers to donate more of their imperfect produce to the hungry.