Skip to content

Commit

Permalink
Fix a clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 13, 2021
1 parent 1f3002e commit 0db7bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::process::Command;
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
// FIXME: maybe pyo3-build-config should provide a way to do this?
let python = env::var("PYO3_PYTHON").unwrap_or("python3".to_string());
let python = env::var("PYO3_PYTHON").unwrap_or_else(|_| "python3".to_string());
println!("cargo:rerun-if-changed=../_cffi_src/");
let python_path = match env::var("PYTHONPATH") {
Ok(mut val) => {
Expand Down

0 comments on commit 0db7bf6

Please sign in to comment.