Carolina snaps losing streak with win over Redskins