Skip to content

Commit

Permalink
Merge pull request #128 from tanj/Version-optional-linux-build
Browse files Browse the repository at this point in the history
fix: linux build missing an unwrap on Version.minor
  • Loading branch information
David-OConnor committed Jun 18, 2021
2 parents 0487bca + 5449940 commit a0f5bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py_versions.rs
Expand Up @@ -456,7 +456,7 @@ pub fn create_venv(
// and we're using its `python`.
#[cfg(target_os = "linux")]
{
match py_ver.clone().unwrap().minor {
match py_ver.clone().unwrap().minor.unwrap_or(0) {
12 => py_name += ".12",
11 => py_name += ".11",
10 => py_name += ".10",
Expand Down

0 comments on commit a0f5bb6

Please sign in to comment.