Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Nov 12, 2023
1 parent ba9f63b commit acf4bfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/monotrail/src/python_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ use crate::monotrail::{
};
use crate::poetry_integration::lock::poetry_resolve;
use crate::poetry_integration::read_dependencies::specs_from_git;
use crate::{inject_and_run, read_poetry_specs, PEP508_QUERY_ENV};
use crate::{read_poetry_specs, PEP508_QUERY_ENV};
use anyhow::{bail, Context};
use install_wheel_rs::Script;
use monotrail_utils::parse_cpython_args::naive_python_arg_parser;
use pyo3::exceptions::PyRuntimeError;
use pyo3::types::PyModule;
use pyo3::{pyfunction, pymodule, wrap_pyfunction, Py, PyAny, PyErr, PyResult, Python};
Expand Down Expand Up @@ -91,7 +92,7 @@ fn get_python_context(py: Python) -> PyResult<PythonContext> {
pub fn monotrail_from_args(py: Python, args: Vec<String>) -> PyResult<InjectData> {
// We parse the python args even if we take MONOTRAIL_CWD as a validation
// step
let script = inject_and_run::naive_python_arg_parser(&args).map_err(PyRuntimeError::new_err)?;
let script = naive_python_arg_parser(&args).map_err(PyRuntimeError::new_err)?;
let script = if let Some(script) =
env::var_os(&format!("{}_CWD", env!("CARGO_PKG_NAME").to_uppercase()))
{
Expand Down

0 comments on commit acf4bfb

Please # to comment.