From 3487c77de96e77aa4239583e148b49ee7a38b597 Mon Sep 17 00:00:00 2001 From: Zanie Date: Wed, 24 Jan 2024 19:59:54 -0600 Subject: [PATCH] Lint --- crates/puffin-interpreter/src/interpreter.rs | 4 ++-- crates/puffin-interpreter/src/python_query.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/puffin-interpreter/src/interpreter.rs b/crates/puffin-interpreter/src/interpreter.rs index fe6c506be..1ce129f27 100644 --- a/crates/puffin-interpreter/src/interpreter.rs +++ b/crates/puffin-interpreter/src/interpreter.rs @@ -222,7 +222,7 @@ impl Interpreter { "PUFFIN_PYTHON_PATH is set; ignoring system PATH when looking for binaries." ); if let Ok(cwd) = std::env::current_dir() { - which::which_in(&requested, Some(isolated), cwd) + which::which_in(requested, Some(isolated), cwd) .map_err(|err| Error::Which(requested.into(), err)) } else { which::which_in_global(requested, Some(isolated)) @@ -230,7 +230,7 @@ impl Interpreter { .and_then(|mut paths| paths.next().ok_or(Error::PythonNotFound)) } } else { - which::which(&requested).map_err(|err| Error::Which(requested.into(), err)) + which::which(requested).map_err(|err| Error::Which(requested.into(), err)) } } diff --git a/crates/puffin-interpreter/src/python_query.rs b/crates/puffin-interpreter/src/python_query.rs index 63c5419e2..063339a88 100644 --- a/crates/puffin-interpreter/src/python_query.rs +++ b/crates/puffin-interpreter/src/python_query.rs @@ -49,7 +49,7 @@ pub fn find_requested_python(request: &str) -> Result { } } else if !request.contains(std::path::MAIN_SEPARATOR) { // `-p python3.10`; Generally not used on windows because all Python are `python.exe`. - Interpreter::find_executable(&request) + Interpreter::find_executable(request) } else { // `-p /home/ferris/.local/bin/python3.10` Ok(fs_err::canonicalize(request)?)