hgmain: fix build with buildinfo enabled

Summary:
The type of `args` has changed. Tests did not capture the issue, since the code
block was not compiled using the default setup.

Reviewed By: sfilipco

Differential Revision: D16953736

fbshipit-source-id: a678f1354511f2d2ceb5faa7a4de0c0c6b03e84d
This commit is contained in:
Jun Wu 2019-08-21 17:59:57 -07:00 committed by Facebook Github Bot
parent 7eb73196c4
commit 8de5266806

View File

@ -37,7 +37,7 @@ fn main() {
#[cfg(feature = "buildinfo")]
{
// This code path keeps buildinfo-related symbols alive.
if let Some(arg0) = args.nth(0) {
if let Some(arg0) = args.get(0) {
if arg0.ends_with("buildinfo") {
unsafe {
buildinfo::print_buildinfo();