We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d33381b commit dd4ab64Copy full SHA for dd4ab64
crates/pet-venv/src/lib.rs
@@ -90,7 +90,7 @@ impl Locator for Venv {
90
let name = cfg.as_ref().and_then(|cfg| cfg.prompt.clone());
91
92
// Determine the environment kind based on whether it was created with UV
93
- let kind = if cfg.as_ref().map_or(false, |c| c.is_uv()) {
+ let kind = if cfg.as_ref().is_some_and(|c| c.is_uv()) {
94
PythonEnvironmentKind::VenvUv
95
} else {
96
PythonEnvironmentKind::Venv
0 commit comments