Skip to content

Commit dd4ab64

Browse files
Copilotkarthiknadig
andcommitted
Fix clippy error: use is_some_and instead of map_or
Co-authored-by: karthiknadig <3840081+karthiknadig@users.noreply.github.com>
1 parent d33381b commit dd4ab64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/pet-venv/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl Locator for Venv {
9090
let name = cfg.as_ref().and_then(|cfg| cfg.prompt.clone());
9191

9292
// 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()) {
93+
let kind = if cfg.as_ref().is_some_and(|c| c.is_uv()) {
9494
PythonEnvironmentKind::VenvUv
9595
} else {
9696
PythonEnvironmentKind::Venv

0 commit comments

Comments
 (0)