fix two warnings
auto merge of #765 : steveklabnik/cargo/fix_warnings, r=alexcrichton