Lyon's summer signing, the Brazilian Nilmar, came on as a late substitute to score both goals in a 2-1 win at Rennes.