Mark Carney, who last month likened Donald Trump to Lord Voldemort, will become the next prime minister of Canada.