Skip to content

Commit 0271bb7

Browse files
committed
temp
1 parent 513e1af commit 0271bb7

File tree

1 file changed

+2
-5
lines changed
  • crates/uv/src/commands/project

1 file changed

+2
-5
lines changed

crates/uv/src/commands/project/run.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1563,9 +1563,7 @@ fn read_recursion_depth_from_environment_variable() -> anyhow::Result<u32> {
15631563
fn is_python_executable(executable_command: &str) -> bool {
15641564
executable_command
15651565
.strip_prefix("python")
1566-
.is_some_and(|version| {
1567-
version.is_empty() || is_valid_python_version(version)
1568-
})
1566+
.is_some_and(|version| version.is_empty() || is_valid_python_version(version))
15691567
}
15701568

15711569
/// Checks if a version string is a valid Python major.minor.patch version.
@@ -1592,8 +1590,7 @@ mod tests {
15921590
for &case in cases {
15931591
let result = func(case);
15941592
assert_eq!(
1595-
result,
1596-
expected_result,
1593+
result, expected_result,
15971594
"{test_name}: Expected `{expected_result}`, but got `{result}` for case `{case}`"
15981595
);
15991596
}

0 commit comments

Comments
 (0)