Skip to content

Commit

Permalink
Tolerate leading v in version string (esp-rs#348)
Browse files Browse the repository at this point in the history
* Tolerate leading v in version string

* Pin executor
  • Loading branch information
bugadani authored and bjoernQ committed May 23, 2024
1 parent e37f67d commit ad42075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-wifi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn main() -> Result<(), String> {
.next()
.unwrap();

let mut version = version.split('.');
let mut version = version.trim_start_matches('v').split('.');

let major = version.next().unwrap().parse::<u32>().unwrap();
let minor = version.next().unwrap().parse::<u32>().unwrap();
Expand Down

0 comments on commit ad42075

Please sign in to comment.