CLEVELAND -- Zach Walters' home run with one out in the bottom of the ninth inning gave the Cleveland Indians a 3-2 win over the Arizona Diamondbacks in the first game of a doubleheader Wednesday at Progressive Field.

Walters hit a 1-2 pitch from loser Randall Delgado (1-3) over the right field wall to end the game and give the Indians their third win in a row.

Right-hander Cody Allen (4-2) pitched the top of the ninth inning and picked up the win.

Both starting pitchers were facing their former team. Indians right-hander Trevor Bauer was selected third overall in the first round of the 2011 June draft by the Diamondbacks, who traded Bauer to Cleveland a little over a year later.

Arizona left-hander Vidal Nuno was a 49th-round pick by the Indians in the June 2009 draft. The Indians released Nuno a year and a half later.

Both pitchers pitched well in the early going. Nuno struck out five of the first six batters he faced in the game and held the Indians scoreless on two hits through five innings.

Bauer held the Diamondbacks hitless and scoreless through the first five innings, facing the minimum 15 batters.

In the top of the sixth inning, third baseman Jake Lamb drew a walk from Bauer to start the inning. Lamb went to third on a single by left fielder Xavier Paul, the first hit of the game for Arizona. Lamb then scored when first baseman Jordan Pacheco grounded into a double play.

Cleveland countered with two runs in the bottom of the sixth. Walters led off with a single and went to third on a one-out single by second baseman Jason Kipnis, who advanced to second on a throwing error by right fielder David Peralta.

Center fielder Michael Brantley then singled to right field, scoring Walters and Kipnis and giving the Indians 2-1 lead. Nuno pitched 5 2/3 innings, tiving up two runs and six hits with six strikeouts and no walks.

Arizona tied it with a run in the seventh inning. Designated hitter Mark Trumbo singled with one out, went to third on a double by catcher Miguel Montero and scored on a groundout by Lamb.

Bauer pitched a career-high eight innings, allowing two runs and four hits with nine strikeouts and two walks.

NOTES: Indians manager Terry Francona said CF Michael Bourn will be activated off the disabled list on Friday and will be in the lineup that night vs. Baltimore. Bourn has been on the disabled list since July 6 with a strained left hamstring. . . Indians DH Nick Swisher will fly to Los Angeles to get a second opinion Tuesday on his sore right knee from Dodgers team physician Dr. Neal ElAttrache. Swisher was placed on the disabled list Aug. 10. ... Arizona LHP Andrew Chafin became the 17th rookie to play for the Diamondbacks this year when he started the second game of Wednesday's doubleheader. The 17 rookies used by Arizona this year is the most in the major leagues.