Remove unused variables.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
auto merge of #8149 : omasanori/rust/cleanup, r=alexcrichton

Fixed a warning.