Fix no-unused-vars rule

Fixes #709.