Roger Federer cruised through to the fourth round of the French Open with a 6-3, 6-1, 7-6 win over Casper Ruud.