Skip to content

Commit 4e5d09b

Browse files
committed
Fix compatibility with 1.16.0 toolchain.
I mean... *why?!* Closes DanielKeep#48.
1 parent ca1a8fe commit 4e5d09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ fn cargo_version() -> Result<Version> {
16021602
use regex::Regex;
16031603

16041604
lazy_static! {
1605-
static ref RE_VERSION: Regex = Regex::new(r#"^cargo (\S+)"#).unwrap();
1605+
static ref RE_VERSION: Regex = Regex::new(r#"^cargo[ -](\S+)"#).unwrap();
16061606
}
16071607

16081608
let mut cmd = Command::new("cargo");

0 commit comments

Comments
 (0)