mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-07-07 20:55:02 +00:00
inline chained expressions
This commit is contained in:
parent
ccf33290b3
commit
d55ca65a70
1 changed files with 3 additions and 3 deletions
|
@ -6,10 +6,10 @@ use std::path::{Path, PathBuf};
|
|||
|
||||
#[salsa::tracked]
|
||||
pub fn find_python_environment(db: &dyn Db) -> Option<PythonEnvironment> {
|
||||
let project_path = db.metadata().root();
|
||||
let venv_path = db.metadata().venv();
|
||||
let project_path = db.metadata().root().as_path();
|
||||
let venv_path = db.metadata().venv().and_then(|p| p.to_str());
|
||||
|
||||
PythonEnvironment::new(project_path.as_path(), venv_path.and_then(|p| p.to_str()))
|
||||
PythonEnvironment::new(project_path, venv_path)
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue