Skip to content

Commit 6784118

Browse files
committed
refactor Err to bail! statements
1 parent 9430a46 commit 6784118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ fn bisect_nightlies(cfg: &Config, client: &Client) -> Result<BisectionResult, Er
13101310
first_success = Some(nightly_date);
13111311
break;
13121312
} else if has_start {
1313-
return Err(format_err!("the start of the range to test must not reproduce the regression"))?;
1313+
bail!("the start of the range to test must not reproduce the regression");
13141314
} else {
13151315
last_failure = nightly_date;
13161316
}
@@ -1324,7 +1324,7 @@ fn bisect_nightlies(cfg: &Config, client: &Client) -> Result<BisectionResult, Er
13241324
let _ = t.remove(&dl_spec);
13251325
}
13261326
if has_start {
1327-
return Err(format_err!("could not find {}", t))?;
1327+
bail!("could not find {}", t);
13281328
}
13291329
}
13301330
Err(e) => {

0 commit comments

Comments
 (0)